Detect mobile visitors on your WordPress blog


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  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. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.