Viewing 4 replies - 1 through 4 (of 4 total)
  • u are missing your viewport meta line. Try adding the following to your header.php (within the <head> tag)

    <meta name="viewport" content="width=device-width, initial-scale=1">

    Thread Starter iv m

    (@ivanomartiello)

    hi Kimberly! I saw header.php and I found:
    <?php if( function_exists(‘wp_is_mobile’) && wp_is_mobile() ) { ?>
    <meta name=”viewport” content=”width=device-width,initial-scale=1,maximum-scale=1,user-scalable=yes”>
    <meta name=”HandheldFriendly” content=”true”>
    <?php } ?>

    written by theme author, what do you think about? thanks!!

    Thanks for the lines. This helps a lot. Ok things are becoming clear….

    Your site does not have that <meta> tag right now which explains why when i checked on my mobile devices it didnt show the mobile version. The reason is because the page was cached when you visited it on your desktop.

    The problem is the author of your theme didn’t consider cache plugins. Most responsive themes always include those special viewport <meta> tags because even when they are shown on non-mobile pages it will still show correctly.

    So to fix your problem: In your header.php file return to that section you listed above make it look like this:

    <?php /* if( function_exists('wp_is_mobile') && wp_is_mobile() ) { */ ?>
    <meta name="viewport" content="width=device-width,initial-scale=1, maximum-scale=1,user-scalable=yes">
    <meta name="HandheldFriendly" content="true">
    <?php /* } */ ?>

    All i did was comment out the php code so that the meta tags will always be written out.

    When you do this remove your cache files (ie. w3tc -> “Clear Cache”). Then try checking your mobile and desktop pages again.

    Cheers
    Kimberly

    Thread Starter iv m

    (@ivanomartiello)

    oh great Kimberly! now it works fine, I will see in the next days if this issue is fixed at all

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘disable responsive theme’ is closed to new replies.