As a seasoned WordPress SEO specialist with years of hands-on experience optimizing sites for top search rankings, I've resolved this common issue countless times. If you're encountering the 'Googlebot cannot access CSS and JS files' warning in Google Search Console for your WordPress site, don't worry. Google's instructions can be vague, but this step-by-step guide will walk you through identifying and fixing it effectively.

Google prioritizes user-friendly sites in its rankings—those that load quickly and deliver excellent experiences. To evaluate this, Googlebot must crawl and render your site's CSS and JavaScript files, just like a real browser.
WordPress doesn't block bots from these files by default. However, security plugins, custom rules, or hosting configurations can inadvertently restrict access, hurting your SEO by preventing proper indexing of critical resources.
Let's pinpoint the blocked files and unblock them.
First, check what Googlebot sees. In Google Search Console, go to Coverage > Blocked Resources for a list of inaccessible files.
Alternatively, use the URL Inspection tool (formerly 'Fetch as Google'): enter your URL, then hit Test Live URL for both desktop and mobile versions.

The results show a screenshot of what users see versus what Googlebot renders. Differences indicate blocked CSS/JS, with direct links to the problematic files listed below.

These are often from plugins or themes.

Access your site's robots.txt via FTP (in the root directory) or, if using Yoast SEO, from SEO > Tools > File Editor.


Common blocking rules look like this:
User-agent: * Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp-content/plugins/ Disallow: /wp-content/themes/
Remove or comment out lines blocking frontend CSS/JS (e.g., wp-includes for jQuery, plugin/theme folders). Save changes.
If robots.txt is missing or empty, Google crawls everything—the issue might stem from your host. Override with explicit allows:
User-agent: * Allow: /wp-includes/js/
Resubmit in Search Console's URL Inspection tool. Compare renders—issues should resolve, boosting your site's crawlability and SEO.
This fix has restored full access for many of our clients' sites. For more WordPress SEO tips, check our comprehensive guides.
If this helped, subscribe to our YouTube channel for video tutorials, and follow us on Twitter and Facebook for updates.