Plugin not switching theme for mobile devices (2 posts)

  1. rawaccess
    Posted 3 years ago #

    I followed the simple and clear installation instructions found here:

    1. Upload the "mobilepress" folder into your "/wp-content/plugins/" directory.
    2. Activate the plugin through the "Plugins" menu in WordPress.

    Yet, when I visit an article/blog on the site, nothing happens; I see the desktop version. Why?


  2. swg1cor14
    Posted 3 years ago #

    Depends on what type of device you are using. Tablets do not show the mobile device.

    If you just want to check how the site looks in mobile version, add ?mobile to the end of your URL. This sets a session variable so in order to go back to desktop version you need to add ?nomobile to end of url.

    If you want to force all tablets (including iPad's) to show the mobile site, you can edit the file in /wp-content/plugins/mobilepress/classes/check.php.

    Find the function mopr_detect_device() and you will see where it sets $this->activated to FALSE for tablet devices.

    Replace that section with this:

    $this->browser		= 'touch';
     $this->activated	= TRUE;
     $this->theme		= mopr_get_option( 'mobile_theme', 1 );

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • MobilePress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.