WordPress.org

Ready to get started?Download WordPress

Forums

MobilePress
Maybe this fixes MobilePress theme display problems? (1 post)

  1. joho68
    Member
    Posted 3 years ago #

    This may be a potential solution to the problem people are having with MobilePress not maintaining the correct site view for mobile/iphone devices vs regular "PC browsers". I am by no means connected to Aduity and have nothing to with MobilePress. What I am suggesting seems to be working for me, if it breaks your code/site, you own all pieces.

    In the folder wp-content/plugins/mobilepress, find and edit the file mobilepress.php, around line 59.

    Look for the comment that says "//Start a session.."
    Right below that comment, there's a construct like this:

    if ( ! session_id())
    {
         @session_start();
    }

    Make this block look like this instead:

    /*
    if ( ! session_id())
    {
         @session_start();
    }
    */

    (you have effectively disabled that code by "commenting it out").

    Save the file.

    Try your site -- clear all caches on both the server (WordPress plugins if you're using any caching add-ons) and your client (browser, smartphone, whatever).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic