So as you know, MLSP sites is pretty strict when it comes to embedding media. For security reasons a lot of things are stripped out of the code to protect your sites – and up until now, the “autoplay” attribute was one of those. Due to popular demand, we went ahead and added some custom scripts that will now allow you to set youtube videos to autoplay when using the page or post editor.
NOTE: If you are using youtube and video marketing (and video IS important) be sure to check out this video marketing strategy guide!
Here's how you'll do it:
All you need to embed a youtube video is the link to the actual video *YOU DO NOT NEED THE FULL IFRAME EMBED CODE (that won't work) – then, all you need to do is add &autoplay=1 to the end of the link. That's it! Your final embed code will look like this, and all you need to do is paste it in to your editor:
Now, I've actually found that the easiest way to do this is to go through the Add Media button because it allows you to easily add that little bit of code to the end of the link like so:
- Click Add Media
- Select “Insert From URL”
- Paste in the Youtube URL and add &autoplay=1 to the end
- Insert in to post
- Marvel at your tech skills