Title: Invalid CSS Styelesheet error
Last modified: October 3, 2017

---

# Invalid CSS Styelesheet error

 *  [ald9506](https://wordpress.org/support/users/ald9506/)
 * (@ald9506)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/invalid-css-styelesheet-error/)
 * The google error I receive is – “_The text (CDATA) inside tag ‘style amp-custom’
   contains ‘CSS !important’, which is disallowed.”_
 * I understand I need to remove !important tags which I used in the custom CSS 
   settings for the plugin (AMP Options> Design > Global Options> CSS).
 * I’ve since removed these, cleared my cache on both the browser and the W3 Total
   cache plugin however I still have the error and still see !important tags when
   viewing the source code CSS.
 * Is there somewhere else that these tags are being stored? Is the CSS still being
   cached?
    -  This topic was modified 8 years, 8 months ago by [ald9506](https://wordpress.org/support/users/ald9506/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Finvalid-css-styelesheet-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [ald9506](https://wordpress.org/support/users/ald9506/)
 * (@ald9506)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/invalid-css-styelesheet-error/#post-9553991)
 * bump… I’ve included a screenshot. You can clearly see the highlighted !important
   tag that needs removing however, I cant figure out where to remove it. I cleared
   all !important tags from my CSS in the AMP settings panel. Is there another stylesheet
   somewhere that’s overriding? Caching issue?
 * [Screenshot](https://ibb.co/d1z2RG)
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/invalid-css-styelesheet-error/#post-9554960)
 * Hi [@ald9506](https://wordpress.org/support/users/ald9506/)
 * That’s Strange, yes, the !important tag is not allowed and it’s coming from the
   file but Did you tried to modify any core plugin or something like that?
 * Are you sure you have removed it from all the places? Because to me it looks 
   like there is still customizations where the !important tag is there.
 *  Thread Starter [ald9506](https://wordpress.org/support/users/ald9506/)
 * (@ald9506)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/invalid-css-styelesheet-error/#post-9557316)
 * I’ve checked everywhere i have no other AMP plugins that misght have caused this.
   Any other ideas. All Custom CSS in AMP>Settings>design>Global has been checked
   as well as appearance>CSS.
 * What else can i try?
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [8 years, 8 months ago](https://wordpress.org/support/topic/invalid-css-styelesheet-error/#post-9557854)
 * Hi [@ald9506](https://wordpress.org/support/users/ald9506/)
 * I would recommend you to do this.
 * 1. Re-install the plugin. If that does not fixes the issue then….
 * 2. Send us an email from [http://ampforwp.com/support/](http://ampforwp.com/support/)
   and Our team will have a look into it.

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

The topic ‘Invalid CSS Styelesheet 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/)

 * 4 replies
 * 2 participants
 * Last reply from: [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * Last activity: [8 years, 8 months ago](https://wordpress.org/support/topic/invalid-css-styelesheet-error/#post-9557854)
 * Status: not resolved