Archived topic
CSS syntax error in tag ‘style amp-custom’
3 replies · Started by Milan on May 26, 2021
Hello GP team,
the Google Search Console has notified me for CSS syntax error in tag ‘style amp-custom’ - incorrect media query. This error i got for example on this site. Do you have any idea how to get this fixed?
Sorry, I really dont know if it is a question for you or WordPress support team.
Thank you for your help.
Milan
Hi there,
that style tag will have been added by your AMP plugin - check with their support.
The issue is its outputting a style tag like so:
<style amp-custom>
Which is invalid - let them know that, they will be able to see it in the sites source code using the browser developers tools.
OK, thank you David! :)
You're welcome