Tag Info

New answers tagged

0

I think the best thing to do in this case is to wrap your oEmbed content with a div before they are rendered and then show an alternate image with the CSS background-image property. If the video loads, then the oEmbed content will cover the background image. You can add the wrapper using the embed_oembed_html filter. add_filter('embed_oembed_html', ...


1

Personally, I found the oembed_dataparse filter pretty fiddly to use; sometimes it worked, sometimes it didn't; and when used in conjunction with custom TinyMCE instances, it seems as though the added wrapper was hard-baked into the content rather than added via the filter at output. I found the embed_oembed_html filter much more reliable and works every ...



Top 50 recent answers are included