harlan erskine Posted April 13, 2021 Posted April 13, 2021 Site URL: https://raymortenson.squarespace.com Hey all, I am woking on styling the captions of a site – https://raymortenson.squarespace.com (in production so pw: Portfolio) this project page for example: https://raymortenson.squarespace.com/projects/natural-landscape I'll break out separate posts for additional questions. I want to add links to the captions. I've tried a few things but nothing works so far. thanks
tuanphan Posted April 14, 2021 Posted April 14, 2021 Hi. Try edit image caption to this untitled, image no. 19981120-13 Gelatin silver contact print, 8 x 10 inches from Ocean Point, 1998. <a href="https://google.com">Text link</a> 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!)
harlan erskine Posted April 20, 2021 Author Posted April 20, 2021 Thanks for the suggestion. currently, (lets use this image with caption as an example: https://raymortenson.squarespace.com/meadowland-journal-lightbox?itemId=yqusrd4unfpmgo14uuxwlo5rw5wog6 has a link in the descriptions of: untitled, Meadowland Journal, image no. 4-30-09 1 1-11, <a href="https://google.com">view the video here.</a> but the link doesn't work. I suspect it might be related to the caption text not being selectable?
harlan erskine Posted April 30, 2021 Author Posted April 30, 2021 Hello, I'm returning to this issue and working to get this image's caption to have a link: https://raymortenson.squarespace.com/meadowland-journal-lightbox?itemId=yqusrd4unfpmgo14uuxwlo5rw5wog6 the image caption is currently: untitled, Meadowland Journal, image no. 4-30-09 1 1-11, <a href="https://google.com">view the video here.</a> thanks
tuanphan Posted May 3, 2021 Posted May 3, 2021 On 5/1/2021 at 4:24 AM, harlan erskine said: Hello, I'm returning to this issue and working to get this image's caption to have a link: https://raymortenson.squarespace.com/meadowland-journal-lightbox?itemId=yqusrd4unfpmgo14uuxwlo5rw5wog6 the image caption is currently: untitled, Meadowland Journal, image no. 4-30-09 1 1-11, <a href="https://google.com">view the video here.</a> thanks It seems can't add link. you can post on some FB groups + Squarespace Customization Resource Groups + Squarespace Community harlan erskine 1 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!)
harlan erskine Posted May 7, 2021 Author Posted May 7, 2021 Thanks @tuanphan I'm on the hunt for a solution - annoying that it's so hard.
CooperWhite Posted April 8, 2023 Posted April 8, 2023 Did you ever figure this out? I’m interested in having links in some of my Lightbox captions. Frick74 1
Frick74 Posted October 30, 2023 Posted October 30, 2023 I'm also interested in a solution on this matter, I checked the website > I think the issue isn't solved. If someone knows a solution, that would be great! Dutch Photographer trying to build his own fantastic website!
tuanphan Posted November 3, 2023 Posted November 3, 2023 On 10/30/2023 at 10:32 PM, Frick74 said: I'm also interested in a solution on this matter, I checked the website > I think the issue isn't solved. If someone knows a solution, that would be great! On 10/30/2023 at 10:32 PM, Frick74 said: I'm also interested in a solution on this matter, I checked the website > I think the issue isn't solved. If someone knows a solution, that would be great! Caption in Gallery Lightbox, Image Block Lightbox or? 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!)
Frick74 Posted November 3, 2023 Posted November 3, 2023 (edited) 3 hours ago, tuanphan said: Caption in Gallery Lightbox, Image Block Lightbox or? hi, in the gallery Lightbox > If you check this comment you can see the problem. ( click on the top title next to the F 'Lightbox captions only' Tuesday... ) Thanks Edited November 3, 2023 by Frick74 Dutch Photographer trying to build his own fantastic website!
Frick74 Posted November 3, 2023 Posted November 3, 2023 (edited) I tried this solution with your code, but the problem is on mobile. The user can't scroll to other images in the gallery, the link is automatically clicked. <!-- code voor link in image caption bij gallery masonry caption ---------------------> <script> document.addEventListener( "click", function (e) { if ([...e.target.classList].includes("gallery-lightbox-control")) { e.preventDefault(); e.stopImmediatePropagation(); if (jQuery("figure[data-active='true']").find("a").length) { } window.open(jQuery("figure[data-active='true']").find("a").attr("href"), "_parent"); } }, true ); </script> <!-- end ---------------------> Edited November 3, 2023 by Frick74 Dutch Photographer trying to build his own fantastic website!
Beyondspace Posted November 7, 2023 Posted November 7, 2023 On 5/8/2021 at 6:15 AM, harlan erskine said: Thanks @tuanphan I'm on the hunt for a solution - annoying that it's so hard. @harlan erskine @CooperWhite The HTML in caption has been sanitized. Have you tried to add the caption into your image as metadata? https://support.squarespace.com/hc/en-us/articles/205812798-Importing-image-metadata#:~:text=necessary formatting standards.-,Enable metadata importing,Check Enable Image Metadata Importing. For example https://www.whitprint.com/catalog/emerald-print-exchange-2020 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
Beyondspace Posted November 7, 2023 Posted November 7, 2023 On 11/3/2023 at 2:54 PM, Frick74 said: I tried this solution with your code, but the problem is on mobile. The user can't scroll to other images in the gallery, the link is automatically clicked. <!-- code voor link in image caption bij gallery masonry caption ---------------------> <script> document.addEventListener( "click", function (e) { if ([...e.target.classList].includes("gallery-lightbox-control")) { e.preventDefault(); e.stopImmediatePropagation(); if (jQuery("figure[data-active='true']").find("a").length) { } window.open(jQuery("figure[data-active='true']").find("a").attr("href"), "_parent"); } }, true ); </script> <!-- end ---------------------> What is the case when you using this code? In your other post, they are the Gallery Sections, which you can paste the HTML in the caption? BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </> 🗓️ Delivery Date Picker (Date picker form field) Gallery block 7.1 workaround </> 🤖 Ask me anything
Frick74 Posted November 9, 2023 Posted November 9, 2023 (edited) On 11/7/2023 at 1:46 PM, Beyondspace said: What is the case when you using this code? In your other post, they are the Gallery Sections, which you can paste the HTML in the caption? Hi, I used the code solution which you can find in the ‘lightbox captions only’ thread. This solution works for me. Edited November 9, 2023 by Frick74 Dutch Photographer trying to build his own fantastic website!
CooperWhite Posted November 9, 2023 Posted November 9, 2023 On 11/7/2023 at 7:43 AM, Beyondspace said: @harlan erskine @CooperWhite The HTML in caption has been sanitized. Have you tried to add the caption into your image as metadata? You're kidding, right? Importing metadata from images into a Gallery section has been broken for a couple of years now. I've had to go into hundreds of images and paste captions (Descriptions) because importing doesn't work. I've had multiple conversations with Squarespace and they know it, but apparently don't want to fix it.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment