You can test your site there to see how easily a visitor can use your page on a mobile device.
Your PrestaShop site probably can not pass that test, which does not mean that your site is not mobile friendly, just because of your site's robots.txt file blocks Google to reach some resources, kind like the test tools is blocked by your site.
Adding several lines to the robots.txt file can fix the problem to allow Google to test your PrestaShop site.
For PrestaShop 1.7 users
As long as those two files don't have errors, your site will show out fine on Google mobile friendly test. Current they both have "Other error"s. If they are blocked by robots.txt, then they should show an error message like this "Googlebot blocked by robots.txt".
BTW I found a javascript error on your site, which was caused by a module called "lofCountDown"
Hello Jonny, thanks for your answer!
Do you know how can I fix those "Other Errors"?
And I cant find module lofCountDown on my web, how do you see javascript error comes from this module!
All the best...
You've fixed the error cased by the "lofCountDown" by moving the main js file up to head. There are still two problems on your site. 1) Content wider than screen 2) Clickable elements too close together.
If you are using a paid theme, contact the developer of it to check those two problems.
I've checked your site, I found that your added those two lines correctly. The reason why your site not displaying fine on mobile friendly test is not robots.txt anymore, there are some other problems, see this picture https://www.sunnytoo.com/wp-content/uploads/Screenshot00558.jpg
Hi Jonny. Thanks for solution.
In PrestaShop 1.6 code at line 4, I think it must be "css/*.css". It's "css/*.js" right now in your code.
Thanks for pointing my mistake out, I've corrected it.
Hello..
I add this 2 lines but there are more errors now!!
This is the website: https://www.kalidodecor.com/
Thanks
Those errors are't due to robots.txt any more, see this picture,
https://www.sunnytoo.com/wp-content/uploads/screenshot/Screenshot00745.jpg
As long as those two files don't have errors, your site will show out fine on Google mobile friendly test. Current they both have "Other error"s. If they are blocked by robots.txt, then they should show an error message like this "Googlebot blocked by robots.txt".
BTW I found a javascript error on your site, which was caused by a module called "lofCountDown"
Hello Jonny, thanks for your answer!
Do you know how can I fix those "Other Errors"?
And I cant find module lofCountDown on my web, how do you see javascript error comes from this module!
All the best...
You've fixed the error cased by the "lofCountDown" by moving the main js file up to head. There are still two problems on your site. 1) Content wider than screen 2) Clickable elements too close together.
If you are using a paid theme, contact the developer of it to check those two problems.
Hi, sorry but, it does not work for me.
?
Share your site url, so I can check. My email address is helloleemj@gmail.com
Hi Team,
Just want to do it, but there is (now) one extra line in Prestashop 1.7.4.x
Allow: */themes/*/assets/css/*
Should this also be changed into Allow: */themes/your-theme-name/assets/css/* ?
Thx for info
I didn't find that code in 1.7.4, if it's in your robots.txt, then just leave it there, it won't affect anything. https://github.com/PrestaShop/PrestaShop/blob/develop/robots.txt
All you need to do is that add those two lines to your robots.txt.
Not working for me.. http://www.muzi.lt
I've checked your site, I found that your added those two lines correctly. The reason why your site not displaying fine on mobile friendly test is not robots.txt anymore, there are some other problems, see this picture https://www.sunnytoo.com/wp-content/uploads/Screenshot00558.jpg
good info, thanks !