Jump to content

Remove lightbox button

Recommended Posts

Hi everyone, 

I have a few products on a page on the website, all set to have the 'quick view' option, so the lightbox appears.

I've changed all the 'add to cart' buttons to 'join', as it's a membership they are purchasing. However, one of them they need to contact us for and I don't want the option for them to purchase online. So I've managed to add some CSS to remove the button when on that product's page, but I can't find a way of removing the button from the lightbox. 

The link to the product page is here: https://oarfish-salmon-gpgd.squarespace.com/how-to-join

The link to the product I've removed the button from is here: https://oarfish-salmon-gpgd.squarespace.com/membership-options/fellow

I'd be grateful for any advice on how to remove the button from the lightbox on the above product please. 

Password: criminaljustice

Thank you

Link to comment
  • Replies 4
  • Views 867
  • Created
  • Last Reply
3 hours ago, Icclebug said:

I've managed to add some CSS to remove the button when on that product's page, but I can't find a way of removing the button from the lightbox.

The CSS you have used to remove the button will only work on the product detail page where the full description is shown. 

Instead of using your existing CSS, you can use this instead:

.sqs-add-to-cart-button[data-item-id="5eebf7d8a5028a07b4437cc5"]{
  display: none!important;
}

This references this product's unique ID and will hide the Add-to-Cart button for this product, wherever it appears.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment
4 minutes ago, paul2009 said:

The CSS you have used to remove the button will only work on the product detail page where the full description is shown. 

Instead of using your existing CSS, you can use this instead:


.sqs-add-to-cart-button[data-item-id="5eebf7d8a5028a07b4437cc5"]{
  display: none!important;
}

This references this product's unique ID and will hide the Add-to-Cart button for this product, wherever it appears.

Perfect Paul, really appreciate your help. 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.