amp-wp icon indicating copy to clipboard operation
amp-wp copied to clipboard

Error in Chrome Console

Open alessandromoretti90 opened this issue 10 years ago • 5 comments

These are the errors to the console. How can I solve them?

schermata 2016-03-06 alle 12 59 48

This is the link -> http://overpress.it/2015/12/22/nuovo-macbook-documentario-60-minutes-no/amp/#development=1

alessandromoretti90 avatar Mar 06 '16 12:03 alessandromoretti90

You need to remove the 'embed' code , instead, you may use iframe and also the 'rel' attribute in the div tag of Multi author ad slot .... and any link in the iframe should be https , not http, if you replace the embed video on your post with an iframe that will look like this

<iframe src="http://www.cbsnews.com/common/video/cbsnews_video.swf" width="100%" height="387" frameborder="0" scrolling="auto"></iframe>

But if the video doesn't have its https version, it will throw error that the src url should be https in iframe again..... the plugin does a good job adding https automatically to all urls in the amp version of iframe you add in your post ...

jery61007 avatar Mar 06 '16 19:03 jery61007

OK, if I want to exclude a plugin only Amp versione how can I do?

alessandromoretti90 avatar Mar 06 '16 20:03 alessandromoretti90

Up

alessandromoretti90 avatar Mar 08 '16 21:03 alessandromoretti90

No one knows help me?

alessandromoretti90 avatar Mar 16 '16 09:03 alessandromoretti90

See this section on how to handle media from other plugins: https://github.com/Automattic/amp-wp#handling-media

mjangda avatar Aug 18 '16 18:08 mjangda