Answer the question
In order to leave comments, you need to log in
Checking the optimization for mobile sees the page crookedly?
Good day. I can't figure out why Google's "Mobile Optimization Checker" doesn't display the mobile version correctly, even though it works fine on all devices. I am attaching a screenshot.
Answer the question
In order to leave comments, you need to log in
Hello.
Look at the contents of the robots.txt file
. Most likely, you have denied Googlebot access to the css & js files of the theme, which is why the site does not display correctly.
Add the following lines to robots and check again:
User-agent: Googlebot
Allow: /*.css*
Allow: /*.js*
Allow: /*.ttf*
Allow: /*.woff*
User-agent: Googlebot-Mobile
Allow: /*.css*
Allow: /*.js*
Allow: /*.ttf*
Allow: /*.woff*
Use - www.responsinator.com
Helps to see the whole picture.
And device coverage is better done like this:
@media screen and (max-width:767px) {
}
@media screen and (min-width:768px) and (max-width:991px) {
}
@media screen and (min-width:992px) and (max-width:1199px) {
}
@media screen and (min-width: 1200px) {
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question