Menu on AMP Pages is Broken

Posted in: Newspaper
Post count: 4

The menu on the AMP pages is broken. Alos, the logo is also not the right size.
See video of the issue below:
http://recordit.co/VLAwInTbIw

https://nasaspeed.news

Post count: 35449

Hi,

Indeed there seams to be a problem, there is set from google amp an inline style -> https://www.screencast.com/t/duWMf3kaxAU this should be 0 not 32 -> https://www.screencast.com/t/6dWtG7tScd2 we’ll try to find a way to fix this problem for the coming updates.
As a quick fix you can try this custom css
-> https://www.screencast.com/t/uYL9Bkm4RhBe
.td-menu-background{
background-position: center top!important;
position: fixed!important;
top: 0!important;
}
.td-mobile-content{
padding: 20px 20px 0;
}

The code need to be set in Theme Panel>Mobile Theme>Custom code> Css

Thank you for your understanding and sorry for the inconvenience!

Post count: 4

How about the logo being super small and the Menu is all expanded?
What is the process to clear AMP cache that Google has?

Thanks!

Post count: 35449

Hi,

For amp logo, you can add this custom css and the logo will have the normal size -> https://www.screencast.com/t/IRR8SCLyU
.td-main-menu-logo amp-img img {
width: 100%;
}

-> https://www.screencast.com/t/UEdtyvUmTm
In order to clear AMP cache that Google please check this article -> https://developers.google.com/amp/cache/update-cache

Thank you!

Post count: 4

Fantastic about the logo. We will make the change.

How about the expanded menu? How can it appear collapsed?

Thanks!

Post count: 35449

Hi,

The menu appear expend because is using JavaScript on mobile menu, and in amp version the JavaScript is removed, in this way was build the method to work for amp menu, maybe the collapse amp menu will be implement in coming updates.

Thank you for your understanding!

Post count: 18

The css for the logo does not affect my site. Even new posts get cached with a smaller vesion of the logo from google. Any other ideas ?

Best regards

Post count: 35449

Hello TimeToGoogle,

Please make sure that after you set the code you clear all cache and you coll the google to re-index your posts/pages.
In order to clear AMP cache that Google please check this article -> https://developers.google.com/amp/cache/update-cache
Ask Google to recrawl your URLs ->https://support.google.com/webmasters/answer/6065812?hl=en
If there is still a problem, please provide me a link where I can inspect your website and some screenshots with the implementation of code you’ve made.

Thank you!

Viewing 8 posts - 1 through 8 (of 8 total)
The forum ‘Newspaper’ is closed to new topics and replies.