Mary_ Posted July 16, 2021 Share Posted July 16, 2021 (edited) Good day! Is it possible to have a link on the image on list section of Squarespace? The only options are link on button and hyperlink on description, but I would like the photos to be clickable too. It is in my Trending Section page. Thank you! Edited February 17, 2022 by Mary_ Link to comment
tuanphan Posted July 17, 2021 Share Posted July 17, 2021 Hi. We can use code to move button link to image link. If you need to use button for another purpose. You can add a text link on description, we will use code to convert that link into button. What do you think? Mary_ 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Mary_ Posted July 20, 2021 Author Share Posted July 20, 2021 I think this is great! Thank you :) Link to comment
Solution tuanphan Posted September 11, 2021 Solution Share Posted September 11, 2021 On 7/20/2021 at 1:57 PM, Mary_ said: I think this is great! Thank you :) Add to Design > Custom CSS /* List Section - Make list images clickable - @tuanphan */ body.homepage li.list-item { position: relative; } body.homepage .list-item-content__button-container { position: static; } body.homepage a.list-item-content__button.sqs-block-button-element { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; color: transparent !important; background-color: transparent !important; border: none !important; } Mary_, melaniejaane and biaalvarez 1 2 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
CourtCro Posted December 14, 2021 Share Posted December 14, 2021 @tuanphan, is there a way to make sure that when the image is clicked, the URL is opened in a separate web browser? Link to comment
tuanphan Posted December 17, 2021 Share Posted December 17, 2021 On 12/15/2021 at 1:22 AM, CourtCro said: @tuanphan, is there a way to make sure that when the image is clicked, the URL is opened in a separate web browser? This will require JavaScript code. Can you share link to your site? We can tweak the code easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
schoolkit Posted January 27, 2022 Share Posted January 27, 2022 Hi @tuanphan, Is the code you posted specific to Mary's wesbite or can it be used on any Squarespace? Link to comment
tuanphan Posted January 28, 2022 Share Posted January 28, 2022 On 1/27/2022 at 8:20 AM, schoolkit said: Hi @tuanphan, Is the code you posted specific to Mary's wesbite or can it be used on any Squarespace? Any sites, but with homepage only. If you want to it affect on other pages, remove body.homepage from the code Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
melaniejaane Posted November 2, 2022 Share Posted November 2, 2022 On 9/11/2021 at 8:28 PM, tuanphan said: Add to Design > Custom CSS /* List Section - Make list images clickable - @tuanphan */ body.homepage li.list-item { position: relative; } body.homepage .list-item-content__button-container { position: static; } body.homepage a.list-item-content__button.sqs-block-button-element { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; color: transparent !important; background-color: transparent !important; border: none !important; } Hey @tuanphan is there a way to tweak the code so the link is only applied to the image or heading but not the description? I have a couple of different links embedded in my description and when I apply this code it makes the entire list including description clickable which overrides existing links. Thanks so much!! 🙂 When I applied the above code to my list section it made everything clickable including the description, and it overrided links embedded in it Link to comment
tuanphan Posted November 4, 2022 Share Posted November 4, 2022 On 11/2/2022 at 9:11 AM, melaniejaane said: Hey @tuanphan is there a way to tweak the code so the link is only applied to the image or heading but not the description? I have a couple of different links embedded in my description and when I apply this code it makes the entire list including description clickable which overrides existing links. Thanks so much!! 🙂 When I applied the above code to my list section it made everything clickable including the description, and it overrided links embedded in it TO apply to image only, you will need to use <script code> If you use a Business Plan or higher, please share link to page where you use carousel, we will check & give new code Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
jdclimbtree Posted February 28 Share Posted February 28 Hi @tuanphan I'm wondering if an alteration of this code could be used to add links to images in a carousel gallery section... For context, you can see the specific carousel gallery just above the footer of this website I'm building. (FYI I have added code to autoscroll) Thanks in advance for any advice you may have! Link to comment
tuanphan Posted March 5 Share Posted March 5 On 2/28/2023 at 7:44 AM, jdclimbtree said: Hi @tuanphan I'm wondering if an alteration of this code could be used to add links to images in a carousel gallery section... For context, you can see the specific carousel gallery just above the footer of this website I'm building. (FYI I have added code to autoscroll) Thanks in advance for any advice you may have! You mean this? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
jdclimbtree Posted March 6 Share Posted March 6 Even further down @tuanphan... the auto scrolling logos in the carousel gallery just above the footer (screenshot attached). Currently, clicking on the banner allows you to pause the scroll or to manually scroll left or right. Instead, I would love to be able to add links to each of the logos (for example, clicking the 'Buff' logo would take you to the Buff website). Any ideas? Thank you in advance! Link to comment
tuanphan Posted March 8 Share Posted March 8 On 3/6/2023 at 10:25 PM, jdclimbtree said: Even further down @tuanphan... the auto scrolling logos in the carousel gallery just above the footer (screenshot attached). Currently, clicking on the banner allows you to pause the scroll or to manually scroll left or right. Instead, I would love to be able to add links to each of the logos (for example, clicking the 'Buff' logo would take you to the Buff website). Any ideas? Thank you in advance! First, enable Carousel Buttons > Add button + link > Then add this to Design > Custom CSS (this code will hide button then) .user-items-list-item-container[data-section-id="63db83ce0dd85f24aa9cedd0"] { li.list-item { position: relative; } .list-item-content__button-container { position: static; } a.list-item-content__button.sqs-block-button-element { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; color: transparent !important; background-color: transparent !important; border: none !important; } .list-item-content__button-container { position: static !important; transform: unset !important; } a.list-item-content__button.sqs-block-button-element:before { visibility: hidden; } .user-items-list-carousel__slide { pointer-events: initial !important; user-select: unset !important; } .user-items-list-carousel__gutter { cursor: pointer; } } If it doesn't work, keep the code & let me know, we can check it again easier jdclimbtree 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
jdclimbtree Posted March 9 Share Posted March 9 You rule @tuanphan thank you! I really appreciate the help, to both this question and the numerous other answers of yours that I have learned from throughout the Squarespace forum. Cheers! tuanphan 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment