Website Building » Squarespace » How Do I Add Captions to Gallery Squarespace?

How Do I Add Captions to Gallery Squarespace?

Last updated on December 24, 2022 @ 9:57 am

Adding captions to your Gallery Squarespace is a great way to add personality and context to your photos. There are two ways to add captions to your gallery: by using the Caption field in the Gallery Settings panel, or by editing the HTML code of your gallery.

To add a caption using the Caption field, first open the Gallery Settings panel. Then, select the image you want to add a caption to and click the “Edit” link. In the Image Settings panel that appears, enter your caption text in the “Caption” field.

If you want more control over the appearance of your captions, or if you want to add captions to multiple images at once, you can edit the HTML code of your gallery. To do this, open the Code Editor and navigate to the page containing your gallery. Then, find the section of code that looks like this:

<div class="sqs-gallery-design">
</div>

Inside that section of code, you’ll see a series of <img> tags, each one corresponding to an image in your gallery. To add a caption to an image, add the following code immediately after the <img> tag for that image:

PRO TIP: If you’re thinking about adding captions to your Squarespace gallery, think again! This seemingly simple task can actually be quite tricky, and if you’re not careful, you could end up with some wonky-looking text. So, before you start adding captions, take a look at this tutorial and familiarize yourself with the process. Otherwise, you might just want to leave the task to a professional.

<p class="image-caption">Your caption text here</p>

You can style your captions using HTML tags such as <b> (bold) and <u> (underline). For example, if you wanted all of your captions to be bold and underlined, you could add the following code to the beginning of your gallery’s HTML code:

<style>
.image-caption {
font-weight: bold;
text-decoration: underline;
}

</style>

Dale Leydon

Dale Leydon

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