How to embed a video on Squarespace without YouTube
Show a video from any host on a Squarespace site with a Code block, which plans allow iframes, and what to do on the Basic plan.
The Squarespace Video block is made for YouTube and Vimeo links, and a YouTube video brings its logo and suggestions from other channels onto your page. To show a player from another host you paste its embed code into a Code block.
Check your plan first
According to Squarespace's help center, adding an iframe to a Code block needs the Core, Plus or Advanced plan. On the Basic plan the iframe won't show. See the end of this guide for a workaround.
Before you start
Upload the video to Vidlify (free with 30 GB of storage), open it and copy the embed code under Share and embed. Take the responsive version, it fills the width of the block and keeps the 16:9 shape on phones.
Add the video
- Open the page in the editor and click Edit.
- Click Add block (or an insert point) where the video should go and choose Code.
- Paste the embed code into the block.
- Click outside the block, then Save.
The editor sometimes shows a placeholder instead of the player. Check the page in a private browser window after saving.
Useful options
Add these to the address in the src attribute:
?t=30starts the video at second 30?autoplay=1&muted=1starts it automatically, muted (why muted)
Keep the video on your site
Squarespace puts the Code block straight into your page, so the domain lock works well here. In the video's settings, under Allow embedding only on these domains, enter your own domain and your yoursite.squarespace.com address (how the lock works).
On the Basic plan
Without iframe support you can still show the video, just not inside the page:
- Take a screenshot of a good frame of the video and add it as an Image block.
- Set the image's click-through link to the video's share link.
- Visitors click the picture and the video plays in their browser on a clean page, without an account.
Troubleshooting
- The code shows up as text: you used a Text or Markdown block. Use a Code block.
- Empty space where the video should be: check your plan (see above) and look at the live page, not the editor.
- The video is tiny on phones: use the responsive version of the embed code.
Source for the plan requirement: Squarespace Help Center, Code blocks.