Jump to content

Please help me make gallery images and titles linkable to the product page

Recommended Posts

Posted

Site URL: https://tasteofdecorfluid529.squarespace.com/

Hi everyone! 

I am trying to make each wine and title on the gallery here link to the product/wine page it represents :image.thumb.png.09c1c4d9ae5549385c06b9dd9acbf080.png clickable so that it links straight through to the wine/product page.

 

I have used CSS from researching the forums but the links only are clickable if I have the CSS open on the left hand side (wierd right) Once I open it normally to view- It doesn't work.

 

Please can someone help me with correct code- I don't think I have it correctly..

 

Password: ProcureWine2024

https://tasteofdecorfluid529.squarespace.com/elephant-hill-winery-page

 

 

Big thank you! 

 

EH PAGE.png

  • Replies 3
  • Views 99
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Posted

Assuming that you don't want to have a button visible, a simple way to do this would just be to use some code to make the button take up the whole width and height of the carousel item.

You can then edit the relevant colour theme to set the button text and background to transparent via Site Styles.

Note: you will need to add some button text (e.g. Shop) even though you're ultimately hiding it, or the link won't work.

/* Make carousel items clickable based on button link */

.list-item-content__button-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin-top: 0 !important;
}

.list-item-content__button {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

Make sure to remove any previous code you've added for this first or it may interfere!

Oh hey! I'm Katy Carlisle, a web designer and trainer who goes by the name SQSP Queen. My pronouns are she/her and I'm based on Vancouver Island in BC 🍁 I've been using Squarespace since 2013, and work mainly with non-profits or freelancers on projects that do good. I love answering questions about Squarespace and don't expect anything in return, but if you do want to say thanks, feel free to buy me a coffee 

  • 2 weeks later...
Posted

Thank you so so much- I have added it but it only works while the CSS is still open on the left and not once I have viewed the website as a hole. I have checked for previous css but am at a loss and cant find it.

 

Any ideas how I could find the css related to this that I put in first ( I didn't highlight it as I have been doing more recently...rookie error) 

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.