PHP Mobile Redirect

Created by: Matthew Smith

Rating:
Downloaded: 9k times

This plugin easily detects mobile devices and redirects them to the mobile version of your site. This plugin also gives you the ability to bypass the mobile redirect based upon a cookie that is set on your mobile site. This allows you to redirect mobile users and give the option to “View Full Site.”

If you are upgrading you must enable the redirect via Settings > PHP Redirect

To set the cookie simply add the following PHP code to your mobile site:

setcookie(“mobile”,”m”, time()+3600, “/”);

The mobile redirect bypass cookie is optional, and should only be used to give your users a “View Full Site” option

Code 96 offers WordPress Design services and custom WordPress Themes.

Screenshots

    Categories

    Get New Themes & Resources