How to make your Joomla site mobile-friendly
Over the years, Google has gradually improved their search ranking algorithms. Couple of years ago, site speed was added as a factor of site ranking. Now, from 21st April 2015, Google will be expanding the use of mobile-friendliness as a ranking signal.
According to their post, this change will affect mobile searches in all languages worldwide and it will have a significant impact in search results. Google has provided a page whereby you can test your site for mobile-friendliness.
How Googlebot sees your page
When checking validation, your site may pass mobile-friendliness test, but sometimes you may get a message as follows:
This page uses 3 resources which are blocked by robots.txt.
Disallow: /templates/ Disallow: /images/ Disallow: /media/
robots.txtif they don't exist and save the file
Disallow: /bin/ Disallow: /layouts/
A change to the default
robots.txt files was made in Joomla! 3.3 to allow Googlebot to access templates folder and media files by default. This change is, however, not applied automatically when you upgrade your site to the newest Joomla! version so you need to review the changes in the
robots.txt.dist file and implement these change in the
When you've activated compression on your site
When you've activated compression on your Joomla! site, the plugin or template that does the compression will store the files in cache folder rather than pull the files from /templates folder. In such cases, even if you've edited your
robots.txt, you may still get the following error:
A temporary error occurred. 12 resources on this page could not be loaded. The results and screenshot may be incorrect. You may want to try again later.
What you need to do is, identify the folder where the resources listed in the report are being loaded from, then 'allow' that folder to be crawled. For instance, Warp Framework compresses and places its files in /cache/template folder so you can add the following line after 'Disallow: /cache/':
Please note that Googlebot may take some time to re-crawl your
robots.txt file, so once you've changed it, you'll have to wait a while.