• While I’m trying to do this from the stylesheet (via detection), I was thinking that it may be better to just create a mobile version template (looking to display for iPhone, and iPad, and Android phones – screen resolutions:
    320×480, 480×800, 768×1024)

    How would I go about creating these templates, and then have WordPress detect the mobile browser version and then serve the correct template? (I’m assuming that would be done through the header)

Viewing 1 replies (of 1 total)
  • Hi.
    You could use the plugin WP-Touch, either as is or to see how they do it.
    Either way, your safest bet is to sniff users’ browser and OS via PHP.
    There are a lot of HPP scripts out there. You could also use the get_browser PHP function, but you would need browscap installed on your hosting’s server for it to work.
    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘Mobile Browsers detection’ is closed to new replies.