Google Search Console error – meta Viewport is NOT set to device-width

This topic has 2 replies, 2 voices, and was last updated 5 years ago ago by Olga Barlow

  • Avatar: eamonnt
    eamonnt
    Participant
    December 3, 2019 at 08:59

    Hi there,
    We are using Legenda theme version 3.1
    Recently we got Google Search Console error regarding mobile layout stating that the meta Viewport is NOT set to device-width.
    Upon inspection, it seems there are 2 viewport meta tags being output:

    Screenshot: https://prnt.sc/q5bail

    Now, upon further investigation, it seems the header.php file in the theme contains a condition for checking whether responsiveness is set or not, but the fixed with meta-viewport is not set inside any conditional statement.
    Should the
    width=1200 viewport
    get output if $etheme_responsive is false?

    Screenshot: https://prnt.sc/q5ba2o

    Kindly advise the best way to remove the fixed with (width=1200 meta-viewport).
    Or, if it wont affect anything else, we can simply remove this?

    Thanks

    1 Answer
    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    December 3, 2019 at 17:25

    Hello,

    Edit code as mentioned on the screenshot https://prnt.sc/q5o12e to remove duplication if the responsive option is disabled or enabled.

    Regards

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.