Jump to content

captions in lightbox only

Recommended Posts

Posted

Hi

I am trying to get my images to open in a lightbox and show a caption ONLY in the lightbox, not on the page itself. I don't want this on every single page (or more specifically, I want it on every page but one)

I don't want the captions to show up as an overlay, the need to be under the image.

The way my client would like this site to be set up, I think I need to add each image separately rather than in a gallery.

Help? Or maybe there's an alternate way to handle this?

Chatgpt gave me this code. It does't work. 

//*Captions in lightbox only*//

/* Hide the image caption by default on the specific page */
body#collection-647a289a33be0f429a2b0700 .sqs-lightbox-meta {
    display: none;
}

/* Show the image caption when the image is opened in a lightbox on the specific page */
body#collection-647a289a33be0f429a2b0700 .sqs-lightbox-slide .sqs-lightbox-meta {
    display: block;
}

  • 5 months later...
Posted
On 6/4/2023 at 6:04 AM, cherylr said:

Thanks for your reply!

And oops sorry - here's the link: https://www.wolheimstyle.com/gallery-3-1

@cherylr just a reminder, you can enable this feature on your Lightbox Studio instance, check the video

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

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.