AMP support
-
Hello!
I’m just trying the free version of your plugin and I’m really impressed by the good work you have achieved, however, I need support for AMP, and currently using the Automattic plugin.
Since we are just testing things out, currently the plugin is used to substitute the featured image in just one post (the one I’m linking to), but as the plugin is outputting regular html, it doesn’t work really on an AMP page.
So, I made a quick hack, putting the gist of a valid video insertion with AMP, and it works, I’m sharing this suggesting it would be a nice feature having native compatibility with AMP.
At the end of the static
filter_thumbnail_html
, instead of passing tocvwp_video_output
the obscure arguments it receives, I’ve just the valid AMP tags:<amp-youtube data-videoid="aV-XEnruDI0" layout="responsive" width="620" height="349"><amp-img src="https://i.ytimg.com/vi/aV-XEnruDI0/sddefault.jpg#404_is_fine" placeholder layout="fill"></amp-youtube>
I bet this is something your plugin could achieve in a better way, since I’ve found the ID of the video, the type and the image placeholder in the meta_key
_cvwp_video_settings
The page I need help with: [log in to see the link]
- The topic ‘AMP support’ is closed to new replies.