How to Fix “Googlebot Cannot Access CSS and JS files” Error in WordPress?
  • October 5

How to Fix “Googlebot Cannot Access CSS and JS files” Error in WordPress?

You met with a caution in Google features for webmasters 'that it is Googlebot cannot obtain the files CSS and JS' for yours website WordPress? The message contains a URL to guidelines on how to fix such issue, but such guidelines are not very simple to pursue. In such article, we'll show you how to fix mistake "that it is Googlebot cannot obtain the files CSS and JS" on yours website with WordPress themes.

What is the reason Google seeks access to CSS and JS files on sites with WordPress themes?

Google has fixated on providing a greater rank for cheerful websites - sites that it is are quick, have a terrific customer practice, and etc. In order to determine the customer practice of a website, Google have to be open to be capable to come to the site with WordPress themes alogn with CSS files and JavaScript code.
3 By initial, WordPress template does not obstruct search platform spiders to obtain files CSS or JS. Nevertheless, some website keepers can unintentionally lock them when trying to add attachment protection evaluates or protection of WordPress with the tool. Such restricts Googlebot from indexing CSS and JS files that it is may affect yours website in search platform optimization. Having said that it is, let us notice how we can find such files and unravel them.

How to provide Google search engine’s access to files CSS and JS in WooCommerce themes?

  1. Primary you have to instantly what files can not open Google on yours website. You can notice how the robot Google notices yours website by clicking on Scan "Fetch as Googlebot console Google (beforehand features for Webmasters). The following step to do, press on "obtain and demonstrate" (you can do such for both desktop and smartphone).
  2. At once clicked, the outcome will appear in the box further. Clicking on it'll show you what the customer notices and what he notices Google's robot while loading yours website with WooCommerce themes.
  3. If you notice any contrast between the 2 screenshots, it denotes that it is Googlebot was incapable to achieve obtain to CSS and JS files. It likewise shows you a URL to the CSS files and the JS, that it is he should not open it. You can likewise find an index of obstructed online resources index Google -- locked online resources.
  4. Clicking on every resource, you'll get URLs to pertinent online resources that it is may not be accessible for the robot Googlebot. For the most part, such are files of styles CSS and JS, included to yours WordPress features or themes.
2 Instantly you have to edit yours robots.txt file that it is powers what Google bot notices. You can edit it to connect to yours website on WooCommerce themes via FTP-client. The robots.txt file is in the root charts of yours website. In a case you're applying SEO tool, you can edit the robots.txt file in the admin WordPress. Just go to the CEO’s features page and then press on the file editor. You probably notice that it is yours website banned obtain to certain directories WordPress:
  • customer-agent: *
  • Disallow: / wp-admin /
  • Disallow: / wp-includes /
  • Disallow: / wp-content / features /
  • Disallow: / wp-content / themes /

Instantly you have to delete the lines that it is obstruct obtain to Google's CSS or JS files on yours website. Typically, such files are located in the folder plug-ins or folders topic. You may likewise have to delete WP-includes many WooCommerce templates and features can cause the scripts in the folder WP-includes, like as jQuery.
4 Some customers may notice that it is their robots.txt file is either empty or does not exist. If Google's robot does not find the file robots.txt, it automatically scans and indexes all files. If you have any problems with fixing this issue you need to appeal to our support service or forum where our customers discuss topics related to WordPress themes and WooCommerce templates.

Helpful Topics

Did you know ?

One standard license is valid only for 1 project. Running multiple projects on a single license is a copyright violation.

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.