Plugin Directory

Test out the new Plugin Directory and let us know what you think.
!This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Mobile Device Detection by 51Degrees

The 51Degrees mobile device detection plugin mobilizes your site. Easy setup including mobile switcher, themes and administration tool.

The plugin can be installed via the normal WordPress method. However, if this is not available you can also these other methods:

If you have set up FTP access:

  • Go to WordPress admin, mouse over plugins, click "Add new", then click "Upload" at the top of the screen.

  • Click "choose file", find the zip file, and click "install now", then follow the on-screen instructions.

If you have not set up FTP access, or if there are problems with the above unzip the plugin to /wp-content/plugins/

After installation, the plugin has several options you may wish to change:

  • Open the WordPress admin dashboard.

  • Select Plugins > Installed Plugins

  • Underneath 51Degrees.com Device Detection, select 'Activate'

  • Select Settings > 51Degrees.mobi

  • Create rules to handle different types of mobile device. See user guide for details.

Theme Developers

  1. After selecting settings:
  • Go to your theme's folder ('twentyfourteen' by default)

  • Open the index.php file and within a php tag add:

global $_51d;
 echo $_51d['IsMobile'];
  • You should see the value as a string, 'True' or 'False'.

  • You can use var_dump($_51d) to see all the properties available, or check our [property guide] (http://51degrees.com/Resources/Property-Dictionary "Property dictionary").

  • You can use the session variable to prevent theme switching, useful for providing a 'view desktop button'.

$_SESSION['NO_SWITCH'] = true; // The user will no longer be switched.

Requires: 2.7 or higher
Compatible up to: 3.9.17
Last Updated: 2 years ago
Active Installs: 300+


3.4 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.