Skip to main content
SimpleVideo.EU
All tutorials

Embedding a video on Squarespace

Add a SimpleVideo player to a Squarespace page with a Code block, set it to HTML mode, and check it in Safe Mode while you are logged in.

Check your plan

Squarespace runs JavaScript and iframes in Code blocks only on the Core, Plus, or Advanced plan. On a plan without that, the SimpleVideo player cannot load from a Code block.

Copy the embed snippet

Open the video in SimpleVideo, go to the Embed tab, and click Copy embed snippet. Keep Recommended embed selected. The snippet looks like this, with your own video ID:

<div class="simplevideo-embed" data-sv="2026.1.21" data-video-id="sv_YOUR_VIDEO_ID"></div>
<script src="https://embed.simplevideo.eu/js" async></script>

Add a Code block

Edit the page or post in Squarespace. Hover over the section where the video belongs, click Add block (or +), and choose Code.

Click the pencil icon on the block and paste the snippet into the text field. Set Mode to HTML: in CSS or JavaScript mode, Squarespace shows the code as text instead of running it. Leave Display Source switched off.

Save and preview

Save the page. While you are logged in, Squarespace sometimes hides code blocks for security even though visitors see them. Click Preview in Safe Mode, or open the page in a private window, to see the player.

The player uses the settings from your SimpleVideo dashboard, and changes you make there appear without editing the page again.

If the player does not appear

Squarespace notes that custom code may not work on pages inside an index page or when Ajax loading is on. If the player stays empty, try the Alternative embed from SimpleVideo in the same Code block. It is a plain iframe and needs no script.

Restrict where the video can play

If you turned on Only allow specific sites on the Embed tab, add your Squarespace domain to the allowed embed domains. Add your squarespace.com site address too if you also check the page there.