Jump to content

Custom code for Image click to lightbox

Recommended Posts

Site URL: https://bronze-chicory-ncxl.squarespace.com/config/

Hi, 

I've created a custom page design using image blocks and spacers only, i'd like the individual images to still have the lighbox feature; you click on one of the images and a lightbox appears where you can scroll through the images on the page. A gallery block isn't right for the design we're trying to achieve. I think I need some custom code for the individual pages.

Can you please help? 

Screenshot 2021-05-13 at 08.01.37.png

Link to comment
  • Replies 2
  • Views 383
  • Created
  • Last Reply
25 minutes ago, PamP said:

Site URL: https://bronze-chicory-ncxl.squarespace.com/config/

Hi, 

I've created a custom page design using image blocks and spacers only, i'd like the individual images to still have the lighbox feature; you click on one of the images and a lightbox appears where you can scroll through the images on the page. A gallery block isn't right for the design we're trying to achieve. I think I need some custom code for the individual pages.

Can you please help? 

Screenshot 2021-05-13 at 08.01.37.png

You mean link the image in the gallery lightbox right?

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.