amp-wp-header a{width:110px; border:none !important; background: url(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
Hi @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
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', ... );
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” ?
Hi @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.
Hi @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) 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.