Jump to content

captions in lightbox only

Recommended Posts

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;
}

Link to comment

Add to Design > Custom CSS

body#collection-647a289a33be0f429a2b0700 {
.yui3-lightbox2 .sqs-lightbox-meta {
    opacity: 1 !important;
    background-color: transparent !important;
}
div.sqs-lightbox-padder img {
    top: -50px !important;
}}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 5 months later...
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 (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

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.