Title: I&#8217;m getting Invalid Stylesheet error
Last modified: February 13, 2017

---

# I’m getting Invalid Stylesheet error

 *  [Samrazzy](https://wordpress.org/support/users/samrazzy/)
 * (@samrazzy)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/im-getting-invalid-stylesheet-error/)
 * Hi Amp team, i’m getting a error with AMP pages which shows critical issue. The
   error shows Fix applicable issues in your Accelerated Mobile Pages (AMP) in order
   to have them prominently served to mobile users.
 * How to fix this invalid stylesheet error ?

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Thread Starter [Samrazzy](https://wordpress.org/support/users/samrazzy/)
 * (@samrazzy)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/im-getting-invalid-stylesheet-error/#post-8798247)
 * When i checked, it shows this error : [https://search.google.com/search-console/amp?id=aGWFeyH67XqseHPeo81Dqg](https://search.google.com/search-console/amp?id=aGWFeyH67XqseHPeo81Dqg)
 *  Thread Starter [Samrazzy](https://wordpress.org/support/users/samrazzy/)
 * (@samrazzy)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/im-getting-invalid-stylesheet-error/#post-8798248)
 * The text (CDATA) inside tag ‘style amp-custom’ contains ‘CSS !important’, which
   is disallowed.
 *  [lofesa](https://wordpress.org/support/users/lofesa/)
 * (@lofesa)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/im-getting-invalid-stylesheet-error/#post-8798291)
 * You had added manually these code:
 *     ```
       /* Custom Style Code */
       	#header {
           background: #1da1f2!important;
       }/* Inline styles */
       ```
   
 * and !important is not allowed in amp pages
 *  Thread Starter [Samrazzy](https://wordpress.org/support/users/samrazzy/)
 * (@samrazzy)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/im-getting-invalid-stylesheet-error/#post-8798306)
 * Thanks for the help Lofesa… I removed it and when i checked again, it still shows
   the same error. Does that mean it takes time to resolve?
 *  Thread Starter [Samrazzy](https://wordpress.org/support/users/samrazzy/)
 * (@samrazzy)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/im-getting-invalid-stylesheet-error/#post-8798314)
 * Now it shows Valid amp pages … Thank you
 *  [lofesa](https://wordpress.org/support/users/lofesa/)
 * (@lofesa)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/im-getting-invalid-stylesheet-error/#post-8798478)
 * I continue viewing the same code (and getting amp error)…. some cache to clear?
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/im-getting-invalid-stylesheet-error/#post-8803869)
 * Thank you so much [@lofesa](https://wordpress.org/support/users/lofesa/) for 
   helping him out!
 * [@samrazzy](https://wordpress.org/support/users/samrazzy/) Thank you so much 
   for using the plugin!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘I’m getting Invalid Stylesheet error’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/im-getting-invalid-stylesheet-error/#post-8803869)
 * Status: not resolved