Error: CSS syntax error in tag ‘style amp-custom’
-
Hi so I have got this error on my website for one of the blog pages. Please assist in removing this?
This is the link with the error: https://lensgreen.wordpress.com/2020/06/13/we-asked-you-answered/amp/
The site I need help with is lensgreen.wordpress.com.
-
Hi there,
I don’t see anything wrong with that page. Where exactly are you seeing this error, have you used an online service that tests websites?
-
Hi
No I don’t use any online website. Just google search console. It gave me an error email 4 days ago and I tried to validate the fix through the link recently but it persisted. Is it possible it’s been fixed on its own?
-
Just google search console. It gave me an error email 4 days ago and I tried to validate the fix through the link recently but it persisted.
Can you let us know what the specific error message is so we can look into this more? AMP is somewhat complicated, so we need a more specific error in order to investigate. Thanks!
-
-
Hi there,
Because it is not possible to see what you see in Google Search Console, can you take a screenshot of what you have there? We’d like to see the entire GSC page where you see that error so we can have the additional context shown there.
To share a screenshot with us, you can upload it to the Media Library on your site, and then copy the image URL. You can see a video of how to do this here: https://d.pr/v/Fcnerp
Once you have the image URL just paste it into your reply and we will be able to see your screenshot. Also, is this an error that appears only for https://lensgreen.wordpress.com/2020/06/13/we-asked-you-answered/amp/ or is it one you see on other posts on your site as well?
Thanks for the additional info!
-
Hi
Thanks for helping with this. Attaching the URL of the screenshot. https://lensgreen.files.wordpress.com/2021/06/error.png
Till now I have only seen this error for the mentioned post not any other.
-
Thanks for your screenshot. I had hoped it would show more specifically what line of CSS is at issue, but it seems that is not the case. Your screenshot is cropped pretty tightly though, is there more info on the page that is not visible in your screenshot?
I did check your page in the public AMP validator here and it seems to check out fine there. I also see in your screenshot that it says “AMP page is valid with some warnings” which is also a good sign.
Generally a “warning” is an advisory that it’d be a good idea to change something for the best interoperability, but it’s not something that is preventing Google from indexing an AMP-formatted version of the post. It’s not clear to me what is causing the warning to appear in GSC so hoping that a more complete screenshot will offer some clues, but you don’t need to worry that Google has some issue with indexing the page.
- The topic ‘Error: CSS syntax error in tag ‘style amp-custom’’ is closed to new replies.