Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
MP4 Video shortcode creates invalid AMP page #976
As a user, I expect video shortcodes to work inside my WordPress posts when they are rendered as AMP.
You can see this problem directly within the AMP Google search console :
The post content generating the error is :
The AMP generated code is :
Yes, this is a problem I've come across as well. The quick fix on your end is to just modify the URL from
However, this should be getting done automatically, such in
I think the problem is just that the
<amp-video class="wp-video-shortcode amp-wp-enforced-sizes" width="740" height="428" loop="" autoplay="" controls="" sizes="(min-width: 600px) 600px, 100vw"> <source type="video/mp4" src="http://ads-up.fr/app/uploads/2016/06/BingAdsEditor-Mac-Multicomptes.mp4?_=1"/> </amp-video>
See also #969.