Jump to content

Display caption in gallery lightbox without having to hover

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://www.pai.com/payroll-integration-test-page

I've seen this question asked a few times, but I haven't been able to get any of the code that's been provided on the other forums to work on my site. I'm designing a page that lists a bunch of partners our clients could choose to work with and have added code that allows users to filter through the available options based on their needs. The page can be found here: https://www.pai.com/payroll-integration-test-page. I would like the captions for each partner's logo (their phone number & website URL) to appear underneath the logo in the lightbox when clicked without having to hover over the image to see the caption and without covering up a large portion of the logo.

I'm not a coder (and our in-house developer is on medical leave), so I'm not sure if all the custom code I already have in the page header injection and sitewide header injection is interfering with this working. Any help would be appreciated! 

Link to comment
  • Replies 4
  • Views 289
  • Created
  • Last Reply

Top Posters In This Topic

On 6/30/2022 at 1:35 AM, bdstellmacher said:

Site URL: https://www.pai.com/payroll-integration-test-page

I've seen this question asked a few times, but I haven't been able to get any of the code that's been provided on the other forums to work on my site. I'm designing a page that lists a bunch of partners our clients could choose to work with and have added code that allows users to filter through the available options based on their needs. The page can be found here: https://www.pai.com/payroll-integration-test-page. I would like the captions for each partner's logo (their phone number & website URL) to appear underneath the logo in the lightbox when clicked without having to hover over the image to see the caption and without covering up a large portion of the logo.

I'm not a coder (and our in-house developer is on medical leave), so I'm not sure if all the custom code I already have in the page header injection and sitewide header injection is interfering with this working. Any help would be appreciated! 

I can not see your gallery on this page. Can you take a screenshot of what you mean?

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
  • Solution
11 hours ago, bdstellmacher said:

This is the gallery I'm referring to:

image.thumb.png.b624f0ea5da3f35d95f1de7a19e93fea.png

Add to Design > Custom CSS

/* Show caption */
.yui3-lightbox2 .sqs-lightbox-meta {
    opacity: 1 !important;
    background: rgba(0,0,0,0.7) !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

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.