Jump to content

Make List section items clickable

Recommended Posts

Posted
On 11/21/2021 at 3:25 AM, vibemade said:

Site URL: http://vibemade.com/

Hi. We have a List section in our home page to show our product categories. However, the images are not clickable which makes for weird UX. Is it possible to make them clickable?

Help is appreciated!

262836938_ScreenShot2021-11-20at3_24_48PM.thumb.png.ec4f8b5cf039d0571ebb3c9d3811dfc3.png

Do you mean clicking on the image will direct to the link attached in button below?

image.thumb.png.0870cb939acd7b36b9dea9241046a8f2.png

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

Posted
On 11/21/2021 at 3:25 AM, vibemade said:

Site URL: http://vibemade.com/

Hi. We have a List section in our home page to show our product categories. However, the images are not clickable which makes for weird UX. Is it possible to make them clickable?

Help is appreciated!

262836938_ScreenShot2021-11-20at3_24_48PM.thumb.png.ec4f8b5cf039d0571ebb3c9d3811dfc3.png

Try adding buttons on each item then add this to Design > Custom CSS

body.homepage {
li.list-item {
    position: relative !important;
}
.list-item-content__button-container {
    position: absolute !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
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;
}
}

 

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!)

  • 8 months later...
Posted

This code works to remove the button on all lists, but what if I am using multiple list blocks. Is there a way to target only specific sections? Thank you in advance!

Posted
7 hours ago, myberman said:

This code works to remove the button on all lists, but what if I am using multiple list blocks. Is there a way to target only specific sections? Thank you in advance!

You can target data-section-id

[data-section-id] {
li.list-item {
    position: relative !important;
}
.list-item-content__button-container {
    position: absolute !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}
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;
}
}

Use this free tool to find data section id: https://chrome.google.com/webstore/detail/squarespace-id-finder/igjamfnifnkmecjidfbdipieoaeghcff?hl=en

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!)

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.