Viewport not set for “\wp-content/themes/” and “wp-content/uploads/”
-
Good day,
I have been monitoring my Google Rankings and have noticed that my site has dropped from the search results. Upon research in Google Search Console, the only issues I’ve been able to find are 15 affected pages in the Mobile Usability report. Everything else is fine.
I’ve researched and tried the following fixes, but to no avail:
1. Block indexing in robots.txt – useful, but only if there aren’t any other sites that have referenced the affected pages, so not a long-term resolution
2. Disabled Read access to the WP-Content directory – I bet your disbelief has astounded you that this was a proposed solution, but you never know until you try. Obviously everything stopped working – no images, theme failed etc etc
3. Disable Googlebot indexing on affected pages in Search Console, but this is only a temporary fix as the pages actually need to be fixedThe only solution that holds any credit is to set the following code in the header of the pages:
“<meta name=”viewport” content=”width=device-width, initial-scale=1″ />”
Problem here is that I have no idea how to edit the WP-Content\Theme or Upload CMS files. I can find the directories through my FTP client, but since they are dynamically generated, I can’t actually get the source of the files and insert the header content where it needs to go. Any ideas anyone? Can this be done through cPanel / FTP / or the WP-Admin pages? If so, I’m not sure how to do it.
Alternatively, another solution to fix this problem would be greatly appreciated.
Thanks in advance.
JustinThe page I need help with: [log in to see the link]
- The topic ‘Viewport not set for “\wp-content/themes/” and “wp-content/uploads/”’ is closed to new replies.