Jump to content

Make List section items clickable

Recommended Posts

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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
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

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
  • 8 months later...
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

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

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.