AMP issues caused by function in your plugin, proposal on how to resolve
-
Hi everyone,
We were dealing with some AMP issues on our web site.
Type of issue:
– External stylesheets not supported, except for whitelisted font providers. Use the document inline ‘style amp-custom’ tag instead.Screenshot: https://ibb.co/4ZXjPnN
These issues are caused by external stylesheet <link> element. After some debugging we found out that this link was created by one function in your plugin, under a comment “Adding FontAwesome/Dashicons at the header for AMP.”
AMP does not support adding external stylesheets like this, so this function will cause Google SEO Console and AMP validator to complain.
Once we commented out this function directly in your plugin problems were resolved.
Side-note: This function will as well cause the AMP issue “Disallowed attribute or attribute value present in HTML tag.”, with the same cause.
Having this in mind, could you please remove or refactor this function in your next releases?
Screenshot: https://ibb.co/27L76nX
If you need any assistance from my side please let me know. This fix will be needed by anyone who uses your plugin in combination with AMP pages.
Hopefully this makes sense.
Kind regards,
MilanThe page I need help with: [log in to see the link]
- The topic ‘AMP issues caused by function in your plugin, proposal on how to resolve’ is closed to new replies.