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

1 reply2 participantsUpdated by Olga Barlow

  • Avatar: eamonnt
    eamonnt
    Participant

    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
    Participant

    Hello,

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

    Regards

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register