Mobile friendly code

by 3 replies
4
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!
#programming #code #friendly #mobile
  • Banned
    [DELETED]
  • <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
    • [ 3 ] Thanks
    • [1] reply
    • Thanks for this, it works a lot better than the code I was using, got rid of the maximum scale though.
  • Banned


    A decent responsive HTML5 theme will fix all of those issues.

Next Topics on Trending Feed

  • 4

    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