Errors – but not on frontend
-
Hi,
I have the plugin installed and am using it in paired mode. I am using a custom template for posts. When I go to mydomain.com/blog/mypost/amp everything works perfectly and I get no validation errors from amp. The main reason I am still using the plugin is to strip and/or convert code to an amp valid format.
In wp-admin, every post has a variety of warnings. The warnings are related to plugins (in this case disqus and “page links to”). The Amp for WordPress plugin rightly strips these invalid scripts etc out, so they are not output in my template. However the list of warnings in the backend would cause alarm to users etc. Is there a way to dequeue this scripts on the admin side?
Extra info: My template doesn’t use the standard editor content at all, it’s an ACF flexible field/repeater setup, hence using a custom page template. The Amp for wordpress plugin works to great to convert things like embeds/images to the amp version within all these ACF fields.
Is there a way to disable these errors or do I have to write a custom script to convert markup to amp valid markup?
Thanks,
Pete
The topic ‘Errors – but not on frontend’ is closed to new replies.