Website Building » Squarespace » Can You Add Text to a Gallery Section in Squarespace?

Can You Add Text to a Gallery Section in Squarespace?

Last updated on October 1, 2022 @ 10:34 am

You can add text to a gallery section in Squarespace by going to the Design tab and selecting Custom CSS. Enter the following code into the Custom CSS box:

.gallery-item-caption {

position: absolute;

bottom: 0;

left: 0;

right: 0;

padding: 10px;

background: rgba(0,0,0,0.5);

color: #fff;

text-align: center;

.gallery-item-caption p {

/* This will style the text inside the caption */
margin: 0; /* This will remove the default margins */

font-size: 16px; /* This will change the font size */
}

}

/* You can also add a link to each image caption */
.gallery-item-caption a {

color: #fff; /* This will change the link color */

text-decoration: underline; /* This will add an underline to the link */
}

}

Save your changes and you should now see text captions on your gallery images!

.

You can style the text inside the caption by using CSS. For example, you can change the font size or colors.

.

PRO TIP: Adding text to a gallery section in Squarespace can result in the text being cut off or not appearing at all.
Dale Leydon

Dale Leydon

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