Failing AMP Page test – css !important error

Posted in: Newspaper
Post count: 22

Hi there,

We’ve recently launched our site and have included the AMP plugin for support. We haven’t changed anything with the plugin, simple enabled it for posts and that’s it.

When running the Google AMP test on our pages they fail with error: “The text inside tag ‘style amp-custom’ contains ‘CSS !important’, which is disallowed.”

For example see here – https://gaminglyf.com/news/2018-03-14-microsofts-new-xbox-live-avatars-will-launch-in-april/amp/

We’re struggling to figure out what’s causing the issue? When viewing the highlighted code in the Google test it doesn’t contain ‘!important’ anywhere in the code let alone the highlighted section. What’s going wrong here?

Post count: 7909

Hi,

Please make sure you use the latest theme version 8.7.2 and also you’ve updated tagdiv amp to the version provided 1.1.

If the issue persist please send an email at contact@tagdiv.com and provide wp-admin access so we can take a closer look. Also paste a link to this topic so we can identify you.

Thanks!

Post count: 22

Thanks Alin, updating to 1.1 of the AMP plugin solved whatever issue was causing it in 1.0.

Appreciate your help.

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.