Support » Plugin: AMP for WP - Accelerated Mobile Pages » How to solve Invalid CSS stylesheet (Critical issue)?

  • The plugin was working awesome from the day 1, I am totally happy with the performance. But from some days back, I saw some error when I navigate to AMP in Google Search Console there is Invalid CSS stylesheet (Critical issue) error.
    There are more than 51 pages are showing the same error.

    Please help me to overcome this errors?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ahmed Kaludi

    (@ahmedkaludi)

    Hi @dixravi

    It’s caused by WP Product Review Lite.

    They have added a bunch of unnecessary CSS in the AMP in their update which is causing the AMP to extend the 50kb CSS limit.

    You can just deactivate that plugin with the help of AMP Plugin Manager or you can deactivate it normally to test it out.

    I have the same problem with my website. It says “The inline ‘style’ attribute is not allowed in AMP documents. Use ‘style amp-custom’ tag instead”. How can I change The inline ‘style’ from a post?

    • This reply was modified 3 years, 1 month ago by hifxur.

    Hello @hifxur

    It seems that you are adding the style tag on your pages, so where ever you are adding it please try to remove it because in amp style tags are not allowed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to solve Invalid CSS stylesheet (Critical issue)?’ is closed to new replies.