Add a Link to Gallery Captions

What does this code do?

This code snippet will allow you to add a link in the Gallery caption rather than on the whole image.

 
Gallery Captions.jpg
 
 

Code Snippet

Click the image icon next to the gallery. Select an image and copy and paste the following code into the Description.

Click <a href="https://www.example.com/">here</a> to see more.
 
Screen Shot 2021-02-08 at 2.55.12 PM.png
 

Customize the text and link. Then add the following code to Design > Custom CSS to edit the color of the caption font.

.gallery-caption a {
  color: blue; /* color of the caption text */
}
 

How To Use It

  1. Copy and paste the code as indicated above.

  2. Customize the text and link.

Rebecca Grace

Rebecca Grace is a Squarespace CSS Expert and Website Designer.

https://rebeccagracedesigns.com
Previous
Previous

Change Blog Date Format

Next
Next

Full Image Captions on Hover | Squarespace 7.1