Posted By

daveonkels on 01/02/10


Tagged

wordpress


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

jose_506
Blacksnipe
BrianCoyDesign
saffyre9
maxvee8


Detect mobile visitors on your WordPress blog


 / Published in: PHP
 

URL: http://www.wprecipes.com/how-to-detect-mobile-visitors-on-your-wordpress-blog

  1. include('mobile_device_detect.php');
  2. $mobile = mobile_device_detect();
  3.  
  4. if ($mobile==true) {
  5. header( 'Location: http://your-website.com/?theme=Your_Mobile_Theme' ) ;
  6. }

Report this snippet  

You need to login to post a comment.