Title: Google Search Console Invalid CSS stylesheet
Last modified: August 31, 2016

---

# Google Search Console Invalid CSS stylesheet

 *  [Ken](https://wordpress.org/support/users/something4ken/)
 * (@something4ken)
 * [9 years, 12 months ago](https://wordpress.org/support/topic/google-search-console-invalid-css-stylesheet/)
 * I get an “Invalid CSS stylesheet” error in Google Search Control (Webmaster tool)
   for several amp articles.
 * > “The text (CDATA) inside tag ‘style amp-custom’ contains ‘CSS !important’, 
   > which is disallowed.”
 * Here’s an example AMP page for which I’m getting this error:
 * [http://www.sawpanse.com/2015/01/26/miss-haiti-universe-christie-desirs-costume-designed-maelle-f-david/amp/](http://www.sawpanse.com/2015/01/26/miss-haiti-universe-christie-desirs-costume-designed-maelle-f-david/amp/)
 * [https://wordpress.org/plugins/amp/](https://wordpress.org/plugins/amp/)

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

 *  [H_Andrea](https://wordpress.org/support/users/h_andrea/)
 * (@h_andrea)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/google-search-console-invalid-css-stylesheet/#post-7392750)
 * Hi, my problem is te same, any idea to solve it? Thank you very much!
 *  [neotrope](https://wordpress.org/support/users/neotrope/)
 * (@neotrope)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/google-search-console-invalid-css-stylesheet/#post-7392751)
 * You cannot inject invalid CSS into the /amp/ endpoint. So, if you have a plugin
   or theme which injects CSS into “all headers” you need to set that to NOT do 
   so with the /amp/ endpoint.
 *  [jrhenry17](https://wordpress.org/support/users/jrhenry17/)
 * (@jrhenry17)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/google-search-console-invalid-css-stylesheet/#post-8446606)
 * Does anyone solve this issue yet? If yes, please let me know the steps to fix
   it.

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

The topic ‘Google Search Console Invalid CSS stylesheet’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [invalid](https://wordpress.org/support/topic-tag/invalid/)

 * 3 replies
 * 4 participants
 * Last reply from: [jrhenry17](https://wordpress.org/support/users/jrhenry17/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/google-search-console-invalid-css-stylesheet/#post-8446606)
 * Status: not resolved