WordPress.org

Ready to get started?Download WordPress

Forums

MobilePress
Plugin not switching theme for mobile devices (2 posts)

  1. rawaccess
    Member
    Posted 1 year ago #

    I followed the simple and clear installation instructions found here:
    http://wordpress.org/plugins/mobilepress/installation/

    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?

    http://wordpress.org/extend/plugins/mobilepress/

  2. swg1cor14
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.