Return to Snippet

Revision: 21993
at December 28, 2009 11:29 by mdrisser

Initial Code
$mobile = mobile_device_detect();

if ($mobile==true) {
    // Edit this URL to point to the location you'd like to redirect to
    header( 'Location:' ) ;

Initial URL

Initial Description
From Web Design Ledger "13 Useful Code Snippets for WordPress Development"

Initial Title
Wordpress - Detecting Mobile Devices Accessing Your Site

Initial Tags
wordpress, mobile

Initial Language