Title: css problem
Last modified: May 17, 2018

---

# css problem

 *  Resolved [danieledti](https://wordpress.org/support/users/danieledti/)
 * (@danieledti)
 * [8 years ago](https://wordpress.org/support/topic/css-problem-78/)
 * I fix the problem !important, accessing the server , change the html code and
   ok, fix the problem, but when I access the page from the browser the plugin modify
   my html code and break my code.
 * plugin put again the !important.
 * so how can I fix this?

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

 *  Thread Starter [danieledti](https://wordpress.org/support/users/danieledti/)
 * (@danieledti)
 * [8 years ago](https://wordpress.org/support/topic/css-problem-78/#post-10290324)
 * 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;}
 * so I need to fix the amp-wp-header
 * where can I fix this, I have to change !important (delete) and this http, I have
   to set another url.
 * so how can I do this ? because if I change on the path /public_html/wp-content/
   cache/wp-rocket/www.escolaedti.com.br/qual-a-importancia-da-estatistica-para-
   o-lider/AMP
 * next time that I access the page, the code will change automatically and will
   put !important again
 *  [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [8 years ago](https://wordpress.org/support/topic/css-problem-78/#post-10292816)
 * Hi [@danieledti](https://wordpress.org/support/users/danieledti/),
 * Thanks for bringing this up. I also see that there’s still an invalid `!important`
   value:
 * [https://validator.ampproject.org/#url=https%3A%2F%2Fwww.escolaedti.com.br%2Fqual-a-importancia-da-estatistica-para-o-lider%2Famp%2F](https://validator.ampproject.org/#url=https%3A%2F%2Fwww.escolaedti.com.br%2Fqual-a-importancia-da-estatistica-para-o-lider%2Famp%2F)
 * It looks like you might be editing a cached page:
 * >  because if I change on the path /public_html/wp-content/cache/wp-rocket/www.
   > escolaedti.com.br/qual-a-importancia-da-estatistica-para-o-lider/AMP
 * Would there be a way to remove that `!important` from the source, not the cached
   page (if I’m not mistaken about the caching).
 * Is there some code in your theme or plugins like this, which outputs that disallowed
   CSS?
 *     ```
       add_action( 'amp_post_template_css', ... );
       ```
   
 *  Thread Starter [danieledti](https://wordpress.org/support/users/danieledti/)
 * (@danieledti)
 * [8 years ago](https://wordpress.org/support/topic/css-problem-78/#post-10295477)
 * I have some plugins installed in my WordPress, but I didn’t found the code “add_action(‘
   amp_post_template_css’,…);
 * or something like that.
 * Remove from the cache doesn’t work so I need to remove from the source.
 * amp plugin didn’t call this “!important” ?
 *  [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [8 years ago](https://wordpress.org/support/topic/css-problem-78/#post-10297254)
 * Hi [@danieledti](https://wordpress.org/support/users/danieledti/),
    Version `
   0.7.0` of the plugin (used on the URL above) doesn’t output any `!important` 
   style rule on the front-end, unless a plugin or theme uses an action to output
   it.
 * Sorry, I’m not sure how much more I can help, other than suggesting that you 
   search the `wp-content/` directory for that disallowed style rule.
    -  This reply was modified 8 years ago by [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/).
 *  Thread Starter [danieledti](https://wordpress.org/support/users/danieledti/)
 * (@danieledti)
 * [8 years ago](https://wordpress.org/support/topic/css-problem-78/#post-10304819)
 * Hi [@ryankienstra](https://wordpress.org/support/users/ryankienstra/),
 * I found the code “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;}” in the ribbon
   of SEO -> AMP , there have a tab Desing, where I found the code, now I change
   so, I hope fix the problem, thanks.
 *  [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * (@ryankienstra)
 * [8 years ago](https://wordpress.org/support/topic/css-problem-78/#post-10324868)
 * Thanks, [@danieledti](https://wordpress.org/support/users/danieledti/)!
    It looks
   like you fixed the issue, at least at this URL: [https://validator.ampproject.org/#url=https%3A%2F%2Fwww.escolaedti.com.br%2Fqual-a-importancia-da-estatistica-para-o-lider%2Famp%2F](https://validator.ampproject.org/#url=https%3A%2F%2Fwww.escolaedti.com.br%2Fqual-a-importancia-da-estatistica-para-o-lider%2Famp%2F)

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

The topic ‘css problem’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [Ryan Kienstra](https://wordpress.org/support/users/ryankienstra/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/css-problem-78/#post-10324868)
 * Status: resolved