Title: CSS important!
Last modified: May 16, 2018

---

# CSS important!

 *  Resolved [danieledti](https://wordpress.org/support/users/danieledti/)
 * (@danieledti)
 * [8 years ago](https://wordpress.org/support/topic/css-important/)
 * Looking at my Search Console on the AMP tab, it appears:
 * The text of the amp-custom style tag contains “CSS! Important”, which is not 
   allowed.
 * So, looking at my code, it shows:
 * <meta name = “generator” content = “Plug-in AMP v0.7.0” /> <style amp-custom>
 * and <style amp-custom> is highlighted
 * How can I fix this?

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

 *  [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [8 years ago](https://wordpress.org/support/topic/css-important/#post-10286417)
 * Hi [@danieledti](https://wordpress.org/support/users/danieledti/),
    Thanks for
   posting that code, and detailing the issue.
 * Could you please add a link to where the issue exists?
 *  Thread Starter [danieledti](https://wordpress.org/support/users/danieledti/)
 * (@danieledti)
 * [8 years ago](https://wordpress.org/support/topic/css-important/#post-10286487)
 * Google Search Console shows this page, and others:
 * [https://www.escolaedti.com.br/qual-a-importancia-da-estatistica-para-o-lider/amp/](https://www.escolaedti.com.br/qual-a-importancia-da-estatistica-para-o-lider/amp/)
 * I guess that you can’t access, but let’s try:
 * [https://search.google.com/test/amp?skip_amp_follow=true&id=cP5po5HJ2Qse5vVknsUogg](https://search.google.com/test/amp?skip_amp_follow=true&id=cP5po5HJ2Qse5vVknsUogg)
 *  Thread Starter [danieledti](https://wordpress.org/support/users/danieledti/)
 * (@danieledti)
 * [8 years ago](https://wordpress.org/support/topic/css-important/#post-10286509)
 * I think he complains about it:
 * .amp-wp-header a{width:110px; border:none !important; background: url([http://wezenhost.com.br/edti/wp-content/uploads/2016/03/logo.png](http://wezenhost.com.br/edti/wp-content/uploads/2016/03/logo.png))
   center center no-repeat; background-size: contain; text-indent:-9999px; height:
   50px; border-bottom: 1px solid #e66425; display:block; float:left;}
 *  Thread Starter [danieledti](https://wordpress.org/support/users/danieledti/)
 * (@danieledti)
 * [8 years ago](https://wordpress.org/support/topic/css-important/#post-10286528)
 * can I only delete the !important?
 * and my code will be:
 * .amp-wp-header a{width:110px; border:none ; background: url([http://wezenhost.com.br/edti/wp-content/uploads/2016/03/logo.png](http://wezenhost.com.br/edti/wp-content/uploads/2016/03/logo.png))
   center center no-repeat; background-size: contain; text-indent:-9999px; height:
   50px; border-bottom: 1px solid #e66425; display:block; float:left;}
 * or deleting will break my web?
 *  [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [8 years ago](https://wordpress.org/support/topic/css-important/#post-10286638)
 * Hi [@danieledti](https://wordpress.org/support/users/danieledti/),
    Like you 
   mentioned, it looks like removing `!important` from that style rule would be 
   a good solution. That rule still applies, even without `!important`. Though it’d
   probably be good to test that in a few browsers.
 *     ```
       .amp-wp-header a {
           width: 110px;
           border: none;
           ....
       ```
   
 *  Thread Starter [danieledti](https://wordpress.org/support/users/danieledti/)
 * (@danieledti)
 * [8 years ago](https://wordpress.org/support/topic/css-important/#post-10286674)
 * Hi [@ryankienstra](https://wordpress.org/support/users/ryankienstra/) so how 
   can I delete this?
 * which is the path to the file?
 *  [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [8 years ago](https://wordpress.org/support/topic/css-important/#post-10286706)
 * Hi [@danieledti](https://wordpress.org/support/users/danieledti/),
    Sorry, I 
   don’t know where that style rule is from. I can’t find it in this plugin, so 
   it’s probably either from another plugin or the theme.
 * Searching the `wp-content/` directory for `.amp-wp-header a` might help.
 *  Thread Starter [danieledti](https://wordpress.org/support/users/danieledti/)
 * (@danieledti)
 * [8 years ago](https://wordpress.org/support/topic/css-important/#post-10286757)
 * Ok i will search for.
 * Thanks a lot =D

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

The topic ‘CSS important!’ 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/)

 * 8 replies
 * 2 participants
 * Last reply from: [danieledti](https://wordpress.org/support/users/danieledti/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/css-important/#post-10286757)
 * Status: resolved