Jump to content

Galley Captions on Lightbox - Line breaks

Recommended Posts

Hi there,

I have read through all of these forums and it seems like there is still not a solution to having line breaks in the lightbox for the gallery captions? Or having a bold title and a regular weight paragraph text to show separation. Essentially I need a way to distinguish the image title from the description information in the lightbox.

Here is the website I am working on:


An example would be the Lululemon Head Office, Vancouver image. If you click into the lightbox I want the "Various renovations including Lululemon Whitespace R&D lab" to be on a second line. Or even the title to be bold and the "Various renovations including Lululemon Whitespace R&D lab" to be regular weight.

I have been working on this for days and cannot find a solution. If you have any idea, I would be forever grateful.

Thank you!!

Link to comment

Without diving head first into re-configuring your JavaScript plugin. Your best bet is to adjust the size of the font and the dimensions of the caption container to get some wrapping to happen.

I'm assuming there are some extra plugins on this website but the script looks like it's just finding the "Alt" and adding the description to the side of your image.


The container for the lightbox is: .gallery-lightbox-item-wrapper

The text container is: .gallery-lightbox-caption

The element selector is: .gallery-lightbox-caption p


Because the script is only searching for and adding a single text element when lightbox is active, you cannot easily add a header/title to the caption.

.gallery-lightbox-item p {
font-size: 4vmin;

Should change the font size but you'll need to do some other adjustments to get it wrapping the way that you want.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.