YouTube Video that Autoplays and Loops

What does this code do?

This code snippet will allow you to add a video to your Squarespace Website that auto plays and loops.

Note: In order for this code to work, it will also mute your video. Visitors can unmute the video if they choose.

 

Code Snippets

Add a video block to your Squarespace Website where you want the video to appear. Instead of pasting in the Video URL, click on the </> icon and copy and paste the following code.

<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/*******?playlist=*******&autoplay=1&controls=1&loop=1&mute=1" frameborder="0" allowfullscreen></iframe>

Replace the ******* with the letters and numbers after “watch?v=” in your YouTube URL.

 

How To Use It

  1. Copy and paste the code snippet as indicated above.

  2. Replace the ******* with the letters and numbers after “watch?v=” in your YouTube URL.

Rebecca Grace

Rebecca Grace is a Squarespace CSS Expert and Website Designer.

https://rebeccagracedesigns.com
Previous
Previous

Add or Remove Image Filters on Hover

Next
Next

Gold Foil or Patterned Text