by Vrs
3 replies
I have a site which Google's "mobile friendly test" says needs to be corrected. It's a wordpress site and Google says the:

1. Viewport is not set
2. Text is too small to read
3. Clickable elements are too close together, and
4. Content is wider than screen

Does anyone know the php code to fix problem #1 on the viewport? Also, if the viewport is set will that automatically fix problems 2,3 and 4?

Thanks for any help!
#code #friendly #mobile
  • Profile picture of the author Nnasir
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    {{ DiscussionBoard.errors[10995053].message }}
    • Profile picture of the author PBScott
      Originally Posted by Nnasir View Post

      <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
      Thanks for this, it works a lot better than the code I was using, got rid of the maximum scale though.
      Signature

      If you don't look at this => Really Funny Shirts <= you missed something in life

      {{ DiscussionBoard.errors[10995084].message }}
  • Profile picture of the author yukon
    Banned
    Originally Posted by Vrs View Post

    I have a site which Google's "mobile friendly test" says needs to be corrected. It's a wordpress site and Google says the:

    1. Viewport is not set
    2. Text is too small to read
    3. Clickable elements are too close together, and
    4. Content is wider than screen

    Does anyone know the php code to fix problem #1 on the viewport? Also, if the viewport is set will that automatically fix problems 2,3 and 4?

    Thanks for any help!


    A decent responsive HTML5 theme will fix all of those issues.
    {{ DiscussionBoard.errors[10995056].message }}

Trending Topics