Latest Tech and Tips

How to Fix “Googlebot cannot access CSS and JS files” Error in WordPress


Are you seeing ‘Googlebot cannot access CSS and JS files’ caution in Google web designer devices make up your WordPress website? The message has web links to guidelines on how to fix this problem, however those guidelines are not really simple to adhere to. In this post, we will certainly reveal you how to fix “Googlebot cannot access CSS and JS files” error on your WordPress website.

Googlebot Warning

Why Google Needs Access to CSS and JS Files?

Google is concentrated on providing much better positions to easy to use internet sites– websites that are quickly, have great individual experience, and so on In order to identify the individual experience of a site, Google demands access to be able to check out the website’s CSS and JavaScript data.

By default WordPress does not obstruct search crawlers from accessing any type of CSS or JS data. However some website proprietors might mistakenly obstruct them while attempting to include additional safety and security procedures or by utilizing a WordPress safety and security plugin.

This limits Googlebot from indexing CSS and JS data which might influence your website’s SEO efficiency.

Having stated that, allow’s see how we can situate these data and unclog them.

How to Give Google Access to Your CSS and JS Files

First you require to recognize which data Google is incapable to access on your site.

You can see how Googlebot sees your site by clicking Crawl” Fetch as Google in Google Search Console (previously Webmaster Tools). Next, click bring and provide switch (you desire to do this for both Desktop and Mobile).

Fetch and render a page as Googlebot

Once brought, the outcome will certainly show up in a row listed below. Clicking on it will certainly reveal you what a customer sees and what the Googlebot sees when it tons your website.

Fetch as Google Comparison

If you discover any type of distinction in between both screenshots, after that this implies that Googlebot was unable to access CSS/JS data. It will certainly likewise reveal you the web links of CSS and JS submits it was incapable to access.

You can likewise locate a checklist of these obstructed sources under Google Index” Blocked Resources.

Finding blocked resources in Google Search Console

Clicking on each source will certainly reveal you the web links to real sources that cannot be accessed by Googlebot.

Most of the moment, these are CSS designs and JS submits included by your WordPress plugins or motif.

Now you will certainly require to modify your website’s robots.txt data which is what regulates what Google crawler sees.

You can modify it by linking to your website making use of an FTP customer. The robots.txt data will certainly be in your website’s origin directory site.

Locating robots.txt file on a WordPress site using FTP client

If you are making use of Yoast SEO plugin, after that you can modify robots.txt data from within your WordPress admin location. Simply go to SEO” Tools web page and after that click File Editor.

Editing robots.txt file using file editor tool in Yoast SEO

You will certainly probably see that your website has actually forbidden access to some WordPress directory sites such as this:

User- representative: *
Disallow:/ wp-admin/
Disallow:/ wp-includes/
Disallow:/ wp-content/plugins/
Disallow:/ wp-content/themes/

Now you require to eliminate the lines that are obstructing Google’s access to CSS or JS data on your website’s front-end. Typically these data lie in the plugins or motifs folders. You might likewise require to eliminate wp-includes, numerous WordPress motifs and plugins might call manuscripts situated in wp-includes folder, such as jQuery.

Some customers might discover that their robots.txt data is either vacant or does not also exist. If Googlebot does not locate a robots.txt data, after that it immediately creeps and index all data.

Then why are you seeing this caution?

On unusual events, some WordPress organizing carriers might proactively obstruct access to default WordPress folders for crawlers. You can bypass this in robots.txt by permitting access to obstructed folders.

User- representative: *
Allow:/ wp-includes/js/

Once you are done, conserve your robots.txt data. Visit the bring as Google device, and click bring and provide switch. Now contrast your bring outcomes, and you will certainly see that many obstructed sources problem need to go away currently.

We wish this post aided you deal with ‘Googlebot cannot access CSS and JS files’ submits error on your WordPress website. You might likewise desire to see our overview on

If you liked this post, after that please subscribe to our YouTube Channel for WordPress video clip tutorials. You can likewise locate us on Twitter and Facebook.