I run a site built on wordpress and my question kind of sums up what I am looking for. There has been an update on google according to which "mobile-friendliness" of a site is now considered as a ranking factor. Since my site traffic has taken a significant dive I took a mobile-friendly-test. Although my site resizes pretty well in mobile devices, the test result still says my site is NOT mobile-friendly.
On a closer look, the result also says - This page uses 20 resources which are blocked by robots.txt. And on further reading of this page I found that blocked resources are a part of the Mobile-SEO. It seems like googlebot needs access to css and js files of a site in order to determine the mobile-friendliness of a site.
On the other hand I read long back that for a wordpress site "wp-content" folder should be blocked. So currently I have my robots.txt as given below. I am wondering on what would be the correct contents in a robots.txt if it is a wp-site, so my site could be read by the mobile-friendly tool as a complying site. Also is it okay to allow access to entire wp-content folder ? This is what my robots.txt looks like.
User-agent: * Disallow: /cgi-bin/ Disallow: /jwp/ Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp-content/ Disallow: /trackback/ Disallow: /feed/ Disallow: /comments/ Disallow: /xmlrpc.php Disallow: /*?s Disallow: /search/ Allow: /wp-content/themes/mysite/style.css Sitemap: http://mywebsite.com/sitemap_index.xml