Solving Googlebot cannot access CSS and JS files Error in WordPress

How to Fix Googlebot cannot access CSS and JS files Error in WordPress?
Facebook
Twitter
LinkedIn
WhatsApp
Email
Pinterest
Print

When Google’s crawler (Googlebot) cannot access the CSS and JavaScript files on your WordPress website then the “Googlebot cannot access CSS and JS files” Error occurs. Numerous factors, including wrong file permissions, incorrect file paths, and plugin conflicts, might cause this.

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

Here are the steps you can follow to fix  this Googlebot cannot access CSS and JS files Error in WordPress:

  1. To start, make sure that your site’s robots.txt file is not restricting access to your CSS and JS files. By going to yoursite.com/robots.txt, you can do this. By deleting the applicable lines from the file, you can allow access to your CSS and JS files if the file is blocking it.
  2. Next, make sure that your site’s .htaccess file is not blocking access to your CSS and JS files by reviewing it. You can do this by using FTP or cPanel to access the .htaccess file on your website and look for any lines that might be preventing users from accessing your CSS and JS files.
  3. Try removing any security plugins or any plugins that might be blocking users from accessing your CSS and JS files to see if the error disappears.
  4. If your website uses any caching plugins, try clearing the cache to see if the problem disappears. Check out the plugin or theme compatibility checklist here.
  5. Make sure your site is pointing to the appropriate URLs for your CSS and JS files if you’re using a Content Delivery Network (CDN) to serve these files.

If you still experience problems after applying these fixes, it can be helpful to contact a WordPress developer or look for assistance from the WordPress community.

Related Posts

About The Author

Dr. Sabbir is a  front-end software engineer and WordPress expert with over 12 years of experience in the tech industry. Although he received his medical degree from Rajshahi Medical University, Dr. Sabbir decided to focus on his passion for technology and website development full-time.

In his role as a front-end software engineer, Dr. Sabbir has helped design and develop user-friendly websites and applications for clients in various industries, including healthcare. He is well-versed in a variety of programming languages and is always looking for new ways to improve the user experience.

55K+ Members

Join Our Facebook Group

53k+ Followers

Follow Our Facebook Page