Jump to content

Lightbox not clickable with Caption Overlay on Hover

Go to solution Solved by tuanphan,

Recommended Posts

Site URL: https://crocodile-corn-gyyh.squarespace.com/2022

Hi All!

 

Password: Opal240!

On the top left image I've used this bit of code for the image block to have its caption fade to the background color with the caption centered:

.image-caption-wrapper {
  min-height: 100%;
  display: flex;
  align-items: center; 
  justify-content: center; 
  background: #D7D3CA !important;
 }

 

Since the caption now covers the entire image on hover I'm not able to click the image for the lightbox to pop up. The second image lightbox works since I have the caption turned off. Is there a way for the lightbox to still work?

 

Thanks for the help!

Edited by Hartzelljs
Link to comment
  • Replies 2
  • Views 175
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

Add pointer-events to your code to enable click

.image-caption-wrapper {
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d7d3ca !important;
    pointer-events: none;
}

 

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.