Zawn Posted November 30, 2020 Posted November 30, 2020 I have a gallery page with photographs and want to have lightbox enabled so you can view the images at full size, but also provide a clickthrough url to the photograph on my shop page.
derricksrandomviews Posted November 30, 2020 Posted November 30, 2020 Lightboxes Clickthrough URLs won't work in Image Blocks or Grid Gallery Blocks with Lightbox enabled. To add clickthrough URLs, uncheck Enable Lightbox or Lightbox. If you want to keep lightboxes enabled and link images, we recommend adding a text link to the image's description. For Image Blocks, certain layouts also support buttons.
Zawn Posted December 1, 2020 Author Posted December 1, 2020 Thank you for the response, that helped me figure out how to add a text link in the image description with lightbox enabled on an image block, but is there a way to do the same thing with a gallery where you have a large number of pictures with a caption on each one?
LKW Posted December 1, 2020 Posted December 1, 2020 @Zawn: You can use image metadata to pre-fill the title and description/caption that will be displayed in the lightbox, and the description can contain HTML links. There's an option in Settings that tells Squarespace to import metadata as you upload images, documented here. Here's an example of imported HTML links in a lightbox: https://www.whitprint.com/catalog/emerald-print-exchange-2020 (Note that not all of these images have links in the captions.) I pre-filled the HTML for these 145 images, then uploaded them en masse. (Actually, in batches, because I've had trouble with sqs choking on mass image uploads.) You'll need to use your photo mgmt app (e.g., Photos on Mac) to get HTML text into the image metadata. Or you can use one of the many tools that can wrangle EXIF/IPTC data. (I used 'exiftool' -- very nice for us old-timers who know our way around a Unix command line -- and it has a CSV input/output option, which meant I could set up my data in a spreadsheet .)
Zawn Posted December 2, 2020 Author Posted December 2, 2020 That's perfect, thank you for the response and the help! Hopefully I will have the site up in not too long.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.