• I have problem in amp for wp. The pages won’t validate: “The text inside tag ‘style amp-custom’ contains ‘CSS i-amphtml- name prefix’, which is disallowed.”

    As far as I can tell the problem is with a font that is being used (I could be wrong). I have not added any custom css so presumably the problem css is being generated by the Amp for WP plugin.

    Can you please help?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @rommieg

    I’ve checked the error and I noticed that you are adding some extra CSS for the class ” i-amphtml ” from the global section which is not allowed and because of that, you are getting this errors.

    So please don’t target this i-amphtml class which dynamically generated.

    Thread Starter rommieg

    (@rommieg)

    Thanks for the quick response.

    I’m not a coder and a relative beginner in WordPress. I didn’t manually add any CSS to this site. I have looked and pondered over the Global section of the AMP settings. I had set the Global colour scheme using the options provided (so that should be OK?) and there was am error in the Typography – missing Google font API. I got that, added it and selected the same font class as used in the theme template.

    I purged the cache and rechecked. I am still getting the error.

    What do I need to do?

    Hi @rommieg,

    Can you please contact us directly on [email protected] so that we can personally debug and resolve the issue at your end and we will fix the issue within the span of time.

    please mentioned that you came from the forum and please attached the forum thread.

    Hope it helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Validation error’ is closed to new replies.