Jump to content

Link Images & Titles in Image Carousel

Go to solution Solved by tuanphan,

Recommended Posts

I'm looking for a way to hyperlink both the images and the titles in a carousel gallery in my portfolio. I'd love for the title and images to be visible, but to eventually hide the buttons so that the user can simply click either the image or title to get through to the linked page. Any help with this would be greatly appreciated!

Here is the webpage (carousel is at the bottom): https://www.samantharanlet.com/portfolio/photography 

Link to comment
  • Replies 6
  • Views 1.8k
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

Add to Design > Custom CSS

/* List clickable */
.user-items-list-item-container[data-section-id="64998f226c956063eec26ea5"] {
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;
}}

 

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

Link to comment
On 7/8/2023 at 4:03 AM, sabertoothless said:

I am pretty sure I need to do the same thing. How do you implement this script easily?  Thank you both so much.

You can share link to page where you use list section, we can adjust code id for your case 

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

Link to comment
  • 11 months later...
On 7/8/2024 at 3:30 PM, Paul_Wille said:

Hey, can you update this for a mobile version too, because this doesn´t work for Mobile @ our site www.bottegajacobs.com

It doesn't work on mobile, because on mobile you used a different Carousel, and in this carousel, you haven't enable Button. You can enable button then use this extra code to Custom CSS

/* List clickable */
section[data-section-id="667d7a7030813771141393c7"] {
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;
}}

image.png.36a8ac443ac78b59448dc4861abf4226.png

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

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.