I used this code for a WordPress site. It was using child theme based on a WPShower theme and the video slider was being generated by a widget that pulled from certain blog posts. There was a lot of stuff going on, so I didn’t want to make any changes to the existing code.
Instead I used jQuery to modify the html that was being generated. It sets autoplay to true in the
[Read more…] about Set YouTube videos to autoplay with jQuery