Hello,
So I have recently setup google search console for my website and have been checking through everything.
When I click on the crawl errors I get all of the following errors showing: http://prntscr.com/kq7uxa
My guess is that it’s something related to the theme as the errors are: wp-content/themes/enfold/framework/php/wordpress-importer/avia-import-class.php
Hope somebody can help,
Thanks,
Regards,
Dan
Hey dmxsta,
You could add following rule to the robots.txt:
User-agent: *
Disallow: wp-content/themes/.*
It will exclude all theme folders and you don’t need to reveal the theme folder name (i.e. “enfold”).
Google indexes all urls by default, including theme resources like css or js scripts. In fact many experts recommend “don’t block the access to theme files” (i.e. Yoast: https://yoast.com/dont-block-css-and-js-files/ ).
Best regards,
Dude
Hey Dude,
Thanks for the fast response, so in your opinion I should leave things how they are?
The errors in the search console will not cause any harm to my website?
Thanks,
Regards,
Dan
Hi,
Are they marked as “server errors” or just “404s”? Please mark all errors as fixed and then wait for a few days before running the the crawl again. See if the same errors arise. If they do, try to 301 redirect them to the home page or to any existing page of your choice.
// https://yoast.com/wordpress-robots-txt-example/
Best regards,
Ismael
Hello,
It says they are soft 404 errors, please see this picture here: http://prntscr.com/kqxmp5
Thanks,
Regards,
Dan
Hi,
This should help: https://support.google.com/webmasters/answer/181708?hl=en
Best regards,
Ismael