Tag Info

New answers tagged


Here is a WordPress plugin you can download and manually install (it has been submitted for review and should be in the repository soon). I created this today just to handle this situation. No changes to content are needed, this works automatically once activated on any and all iframes. ...


This is my solution in functions.php function embed_responsive_autoplay($code){ if(strpos($code, 'youtu.be') !== false || strpos($code, 'youtube.com') !== false){ $return = preg_replace('@embed/([^"&]*)@', 'embed/$1&showinfo=0&autoplay=1', $code); return '<div class="embed-container">' . $return . '</div>'; } ...

Top 50 recent answers are included