I used this to load a iPad specific navbar, might be useful/ adaptable: <script type="text/javascript"> if((navigator.userAgent.match(/iPad/i))) { document.write("<?php get_template_part('navpad'); ?>"); } else { document.write(); } </script>