So I showed you how to add a video to your WordPress blog and I have had some requests on how to get that YouTube video to autoplay right when someone lands on your site. Below I will spell it out for you as well as show you a video.

1. Grab your embed code from YouTube and look for the   src=

<object width=”580″ height=”360″><param name=”movie” value=”http://www.youtube.com/v/yFgZmYZDcmY&hl=en_US&fs=1&rel=0&color1=0x234900&color2=0x4e9e00&border=1″></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/yFgZmYZDcmY&hl=en_US&fs=1&rel=0&color1=0x234900&color2=0x4e9e00&border=1″ type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”580″ height=”360″></embed></object>

2. Go to the end of this link and before the first & sign and add  &autoplay=1

3.  Code will then look like this:

<object width=”580″ height=”360″><param name=”movie” value=”http://www.youtube.com/v/yFgZmYZDcmY&hl=en_US&fs=1&rel=0&color1=0x234900&color2=0x4e9e00&border=1″></param><param name=”allowFullScreen” value=”true”></param><param name=”allowscriptaccess” value=”always”></param><embed src=”http://www.youtube.com/v/yFgZmYZDcmY&autoplay=1&hl=en_US&fs=1&rel=0&color1=0x234900&color2=0x4e9e00&border=1″ type=”application/x-shockwave-flash” allowscriptaccess=”always” allowfullscreen=”true” width=”580″ height=”360″></embed></object>

4. Copy code into widget in your side bar and save.  That’s it. (don’t forget to re-size your video to fit your side bar)

Share

Tagged with:

Filed under: How to Start a BlogWordPress FAQ's

Like this post? Subscribe to my RSS feed and get loads more!