Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Getting the following AMP error on Google Search console, details below.

$
0
0

Replies: 1

Hi there,

I’m getting this AMP error on three pages of my website, but one of them is a most important blog post I have written, and it’s plummeting in the SERPS, want to get this fixed even if I have to turn off AMP and start again.

Yesterday was when the issue started which was also the day I subscribed to SMUSH pro, because as a photographer that wants to display lots of photos, images looking good and not too large is of the most importance.

Error said “Tag found outside the document head which is only allowed as a direct child of the document head.”. Google’s help directed to Github, but I’m a business owner, not a web developer, so it may have well as been written in Greek.

This is a screenshot of how my backend looks right now as I’m writing: https://prnt.sc/qgvfzj
When I hit ‘validate’, it still shows up as an error as I don’t know how to change something to make the problem go away.

Apart from turning off the image Smushing.

My super important blog post is still displaying fine Amp version – https://prnt.sc/qgvgga so not sure why GSC is complaining. I don’t understand what the words “Tag found outside the document head which is only allowed as a direct child of the document head”, it’s complete gibberish to me that doesn’t explain what the problem is.

Why are only three blog posts out of 75 affected? what’s so special about those?

When experts like this site: https://amp.dev/documentation/guides-and-tutorials/start/converting/resolving-errors/ say ‘add this to the head’ or ‘add this code’ I have no idea what that means. Where do you add it? My wordpress back end looks like this: https://prnt.sc/qgvikv I can’t see an area to add anything except content for the blog post or a few plug ins below.

Any help you can grant would be amazing, but as I hate having errors there, I would rather switch off AMP than have the errors persist. Thanks in advance.


Viewing all articles
Browse latest Browse all 59525

Trending Articles