Website Building » Squarespace » How Do I Add an Overlay to Squarespace?

How Do I Add an Overlay to Squarespace?

Last updated on October 1, 2022 @ 6:25 am

There are a few different ways that you can add an overlay to your Squarespace website. One way is to use the built-in overlay feature in the Squarespace editor.

To do this, simply click on the ‘+’ sign next to the section where you want to add the overlay, and then select the ‘Overlay’ option from the drop-down menu.

Another way to add an overlay to your Squarespace website is by using CSS. This method is a little more advanced, but it gives you more control over how the overlay looks and functions. To add an overlay using CSS, you’ll first need to create a new CSS file and then add the following code:

PRO TIP: This article contains information about how to add an overlay to Squarespace. Please be aware that this may not be supported by Squarespace and may result in unexpected behaviour.
.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(0,0,0,0.5);
}

Once you’ve added this code, you can then add the overlay to any page on your website by adding the following code to the ‘Page Header Code Injection’ field:

<div class="overlay"></div>

Conclusion: As you can see, there are a few different ways that you can add an overlay to your Squarespace website. Choose the method that best suits your needs and skillset.

If you’re looking for a more simple solution, then use the built-in overlay feature in the Squarespace editor. If you want more control over how the overlay looks and functions, then use CSS to create a custom overlay.

Dale Leydon

Dale Leydon

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