• How can I fix these three errors which are limited only to various wp-content/uploads on my site, according to Google search console. They are sited as problems causing my site to become mobile unfriendly. I am using the twenty fourteen responsive theme.
    The errors are:
    – Text too small to read in uploads on 27 pages.
    – Viewport not set on 26 pages.
    – Clickable elements too close together on 26 pages.
    I would appreciate any detailed help that includes where on the backend I can find the code that needs adjustment and what to look for and how to fix it.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    It appears you are misinterpreting the message you’re seeing in Google Search Console. wp-content/uploads is just a folder, and cannot cause any of the “errors” you mentioned.

    If you want help to address this…

    1) Post the exact error message, not your interpretation of it (be sure to remove any personal information).
    2) Provide a link to the site in question so we can test and advice you

    Good luck!

    Thread Starter Mishwarek

    (@mishwarek)

    Hello,
    Thank you for responding. I ran the Mobile-Friendly Test of Google’s Search Console. The test results sometimes were that “Page is not mobile friendly”, but at other times that the “Page is mobile friendly”!
    On clicking one of the provided links in the report, “Open-site mobile usability report”, the report listed the errors:
    – Text too small to read.
    – Viewport not set.
    – Clickable elements too close together.
    On clicking on each error another report appeared showing a list of urls of affected pages and dates they were last crawled. Examples of urls given:
    https://www.mishwarek.com/wp-content/uploads/2016/05.

    Hello,

    Examples of urls given: https://www.mishwarek.com/wp-content/uploads/2016/05.

    This is just an internal folder where WordPress kept the images you uploaded to your website in MAY 2016.

    This is not a page with content that “normal” people will ever visit, so whether or not it’s mobile friendly shouldn’t be a concern. Ideally, you or your host should even be blocking such URLs which list all files you’ve uploaded… for security reasons.

    You can ignore all such /uploads/ URLs and only worry about URLs that contain the content you wrote that you want people to read.

    Or better yet, disable directory indexing to stop such URLs listing files in folders, which should also stop Google from seeing such URLs in the first place. Here’s a guide from your host, Bluehost: https://my.bluehost.com/cgi/help/414

    Our site has exactly the same ‘problem’ as Mishwarek states and I’m also looking for a solution that doesn’t block Google’s bots from accessing the content (e.g. robots.txt) as this causes other real problems.

    Whilst I totally agree that these index pages are not something a ‘normal’ person would see, they do cause errors in Google Search Console and this can’t be good. I recently discovered that Google now ‘needs’ access to parts of the site that previously were advised to be restricted.

    I would like some guidance if possible on how to apply some basic CSS (sizing/viewport setting) to ‘false’ pages with a link structure …/wp-content/uploads/*

    Any help appreciated

    I’m in the exact same situation. Looking for help on what to do.

    Our site has exactly the same ‘problem’ as Mishwarek states and I’m also looking for a solution that doesn’t block Google’s bots from accessing the content (e.g. robots.txt) as this causes other real problems.

    I see a lot of these “problems” on some of my websites in Google Search Console. These include secure login pages, restricted pages (requiring login to access), and completely private sections of my sites (in which I’ve decidedly blocked Google).

    There are a lot of things Google’s software will find and complain about… that you should either ignore (because there’s nothing user-facing on those URLs, you’re not trying to rank them, and the work to provide a “fix” is non-trivial) or you should decidedly block Google from accessing (for security and privacy reasons).

    That’s why Google gives you a tool in search console to tell them to IGNORE such URLs.

    Do you really want people to be snooping on your website and seeing all your installed plugins like this?

    It’s this same directory indexing that I’m talking about that creates a page listing all your images, that’s also created the above page listing this website’s plugins (and the content of any other folder).

    If the web server is properly configured with Directory Indexing turned OFF, the above shouldn’t be happening (and your images shouldn’t be listed either).

    (Note that if you open /wp-content/plugins/ on your domain and only see a blank screen instead of a listing of your plugins, it’s because the WordPress developers realized many people have improperly configured webservers, so to avoid strangers browsing your website’s folders and seeing all your installed plugins (among others), they now place a blank HTML file in most of the folders that ship with WordPress. But, of course, any new folders you create… including the monthly “uploads” folders, will not automatically have this “protection”.)

    I would like some guidance if possible on how to apply some basic CSS (sizing/viewport setting) to ‘false’ pages with a link structure …/wp-content/uploads/*

    Now, if you REALLY want to keep directory listing enabled… note that those index pages are NOT generated by WordPress, but by the web server itself. So you can’t simply apply CSS in WordPress to control that display.

    CSS-Tricks has a tutorial to style directory listing pages:

    https://css-tricks.com/snippets/php/display-styled-directory-contents/

    Note that 1) You don’t apply the code in WordPress, as WordPress has nothing to do with it… 2) Even with sample code, it’s not trivial to get working… 3) The code in the downloadable files does not have sub-directory support, so you’ll need to adapt it somehow so your subdirectories will inherit the style (see the comments section for sample code).

    Again, the real solution to this is to disable index listing in your webserver, ignore the Google warning, or ask Google to ignore those URLs.

    If you decide to disable directory indexing, your best bet is to contact your host. If they won’t help, here are some DIY resources:

    WordPress Plugin: https://www.ads-software.com/plugins/prevent-direct-access/

    Good luck, and stay blessed!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Errors in WP-content/uploads causing site to be mobile unfriendly’ is closed to new replies.