• hi,
    I am new to wordpress, 10 days to be exact, My website does not render correctly on mobile devices no matter which theme i use. It displays strange and at the end is a button to switch to web view… when i click web view then it renders correctly.
    I have tried deactivating all plugins, switching between different themes, installing/uninstalling wptouch etc but of no use. I did not create this site but I am asked to fix this issue.
    please help me.
    url to the website : https://www.locksmithsdubai.com

    Thanking you in anticipation

Viewing 9 replies - 1 through 9 (of 9 total)
  • So the page displayed for mobile devices seems to be rendered through a different CMS than wordpress (completely different source code without wordpress like markup).

    The query string parameter ?view=mobile or ?m forces the page to render like that, so first I would search the place where that condition is and what it actually does.

    Thread Starter saqib786

    (@saqib786)

    hmm… interesting

    so it seems i have been stucking my head in the wrong place all along. if it is not rendering from wordpress then the culprit cms should also be hosted on the same server as the original website… hopefully.

    I go check that until someone else suggests anything else…
    thanx for the helpful suggestion QXARE.

    Thread Starter saqib786

    (@saqib786)

    nope, i dont see any other folders than wordpress folders or maybe you could tell me what to look for… ??

    Thread Starter saqib786

    (@saqib786)

    i think i found somethingin .htaccess
    copy pasting the suspecious portion

    # stop condition
    RewriteRule ^mobile/.*$ – [L]

    #Redirect urls based on a query string parameter
    RewriteCond %{QUERY_STRING} ^(.*&)?view=mobile([^&]*)&?(.*)?$
    RewriteRule ^(.*)$ /$1?m%1%3 [CO=is_mobile:1:%{HTTP_HOST},CO=disable_mobile:0:%{HTTP_HOST},L,R]

    RewriteCond %{QUERY_STRING} ^m*(.*&)?view=full([^&]*)&?(.*)?$

    Is there a certain purpose for this stuff?, otherwise try to comment this out by adding # in front of these lines (there are more?).

    Thread Starter saqib786

    (@saqib786)

    I fixed it, problem was in .htaccess file, looks like my client was using weebly which was causing the trouble. i cleaned all weebly portion from htaccess and now it seems to be working fine on mobile.

    thanx for the your advice QXARE , i have been trying to solve this for about a week now. thank u again sir, i really appreciate your help.

    Thank you for sharing this post with us. perhaps i also have the same kind of issue with my site. when i open my site in mobile the pictures are not responsive and even text as well and one another issue is that i cant where to edit header and footer of my site i am hell messed up. can somebody tell me how can i do it.

    Moderator t-p

    (@t-p)

    Thread Starter saqib786

    (@saqib786)

    Hi smith121,
    1.deactivate all your plugins
    2.edit your .htaccess file through ftp or cpanel access
    3.clear all the text above the wordpress start comment.

    let me know if the problem persists
    [Contact details redacted]

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘website not rendering correctly on mobile with any theme’ is closed to new replies.