How do I make a YouTube video autoplay?
1. On YouTube, open the video you wish to embed.
2. Click Share, then Embed.

3. Choose your settings, then Copy the HTML code.
4. In your Bigcommerce control panel, open the page, product, or category you'd like to add the video to.
5. In the editor, click HTML (
) in the WYSIWYG editor.


6. Paste the code, and then add ?rel=0&autoplay=1 to the code as shown below.
Before:
<iframe width="420" height="315" src="[YouTube Video URL]" frameborder="0" allowfullscreen></iframe>
After:
<iframe width="420" height="315" src="[YouTube Video URL]?rel=0&autoplay=1" frameborder="0" allowfullscreen></iframe>
7. Select Update.

8. Save the page, product, or category.

No comments:
Post a Comment