Jump to content

How to make a lightbox for an image open by clicking on a text box?

Recommended Posts

Hi all, I hope you are well.

I am looking for a way to add code so that when someone clicks on the text boxes which overlay each of my images on hover, it opens up the lightbox for the image underneath.

I have attached an screenshot of one image pre-hover and another when the cursor hovers over it for reference. I want a click anywhere in the text box to lead to the lightbox.

Hope this helps.

Screenshot 2024-06-01 at 14.25.54.png

Screenshot 2024-06-01 at 14.25.47.png

Link to comment
  • Replies 1
  • Views 237
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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.