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.
.