Tag Info

New answers tagged

0

if you could make it to something like this: <div class="videoWrapper"> <iframe width="600" height="338" src="https://www.youtube.com/embed/f5CcOq8UzkI?feature=oembed" frameborder="0" allowfullscreen=""></iframe> </div> then responsive css for that would be like this: .videoWrapper { position: relative; padding-bottom: ...


1

Instagram has changed its embed code from being just an iframe to a bunch of HTML and a JS script. Very inelegant, but nothing we can do. This setup, of course, fails when called through AJAX since the JS file that's part of the HTML does not run. Thankfully there is another official way to make it work with AJAX in two steps: Include this scripts in your ...


0

Here is enhanced verison of brasofilo plugin: add_filter( 'oembed_dataparse', function($str, $data, $url) { if ( ($yt = $data->provider_name == 'YouTube') || ($vm = $data->provider_name == 'Vimeo') ) { if($yt) $html = str_replace('feature=oembed', 'feature=oembed&autoplay=1', $str); else $html = str_replace('" width=', ...



Top 50 recent answers are included