I hope in recent days many of them received the below error from Google Search console team
” Googlebot cannot access CSS and JS files on http://yoursite.com/ ”
If your answer is Yes, Here is the detailed solution for this error message, But still you are not getting this message from google search console team you may receive this message in future so it is best to fix this issue as mentioned in this blog.
Please refer the below image for exact message which i have received from google search console team for one of my blog.
login to the google webmaster tool, then go the your website dashboard Click on Google Index -> Blocked Resources & search console list will contain any blocked content as like in the below image.
You can click the click host name listed in search console, which will show all the googlebot blocked content files, Here you can see only intentionally blocked contents just ignore that.
But if you see files for any plugins or themes content like .css and .js files which is important to display, you can fix this affected pages by editing the robots.txt file.
Fix Googlebot CSS & JS Warning by editing robots.txt
Now we have to edit the robots.txt, if you are don’t aware of robots.txt file please find the simple description in the below.
“Robots.txt is a text file webmasters create to instruct robots (typically search engine robots) how to crawl and index pages on their website”
You can edit the robots.txt file in two ways, one is FTP file click such as filezila, and another one is using wordpress yoast plugin file editing option.
Here we will see how to edit the robots.txt file using yoast file editing option, Inside your WordPress dashboard, click on SEO -> Tools then click on File editor.
once open the file editor you can see the robots.txt content, just remove below lines from robots.txt file.
Depends upon your configuration, the robots.txt file content may vary, so remove the above line and save the file.
After you fixed this issues go the google webmaster page then you can click “fetch and render” to start the test. Now your warning are removed googlebot search console page.
if you have any doubts regarding this waring let us share in comments.