Website Building » Squarespace » How Do I Add an Embed Code to Squarespace?

How Do I Add an Embed Code to Squarespace?

Last updated on December 10, 2022 @ 6:06 am

Adding an embed code to your Squarespace site is a great way to add multimedia content, like videos or maps, to your pages. Embed codes are provided by third-party providers and are generally simple to copy and paste into your Squarespace code blocks.

In this article, we’ll cover how to:

  • Find embed codes from third-party providers
  • Copy and paste embed codes into Squarespace
  • Customize the appearance of embedded content on your site

Before you begin, it’s important to note that adding code to your site can create stability and display issues. We recommend working with a developer if you’re uncomfortable adding code to your site.

Finding Embed Codes

Most third-party providers offer an embed code generator. This tool allows you to adjust the size and other parameters of the content before copying the code.

Once you’ve generated the code, copy it to your clipboard so you can paste it into Squarespace later.

Copying and Pasting Embed Codes Into Squarespace

Once you have your embed code, you can add it to a Code Block in Squarespace. This block supports HTML, CSS, JavaScript, and other coding languages.

To add an embed code:

  • Open the page or post editor and click an Insert Point or the +.
  • In the Block Menu, click Code.
  • Click an Insert Point or the +.

On desktop, hover over Code and click the Plus icon.

  • On mobile, tap Code in the Block Menu.

Paste your code into the Enter Code field.

Click Apply.

  1. Troubleshooting

If your embedded content doesn’t appear after adding the code block, check with the provider for help troubleshooting.

PRO TIP: If you are not familiar with HTML code, we do not recommend adding an embed code to your Squarespace website. Adding an embed code can cause your website to break and may be difficult to fix.
  1. Next steps

After adding your code block, you can use block settings, like alignment and visibility, to control how it appears on your site.

Customizing Appearance

The default appearance of most embedded content is determined by the provider. For example, YouTube videos always display with related videos at the end unless you turn this setting off in their player.

Iframes

When using iframes — a common method for displaying embedded content — you can add parameters directly to the URL in your code snippet to customize its appearance.

These parameters are specific to each provider.

YouTube

To learn more about customizing YouTube videos using URL parameters, visit their Embedding a Video Player documentation. Common parameters include:

  • “autoplay=1”: This parameter causes the video to automatically play when loaded.
  • .

    Adding an embed code to your Squarespace site is a great way to add multimedia content, like videos or maps, to your pages. Embed codes are provided by third party providers and are generally simple to copy and paste into your Squarespace code blocks.

    In this article we covered how to find embed codes from third party providers, copy and paste them into Squarespace ,and how to customize their appearance on site. Adding an embed code is a great way improve user engagement on site by adding multimedia content!

Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.