RichardR Posted June 19, 2020 Posted June 19, 2020 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
Guest Posted June 19, 2020 Posted June 19, 2020 Hi there! Happy to try and help — can you share the custom CSS you've added to remove the button on the product's page? Might be a way to edit/update that to include the lightbox button as well.
RichardR Posted June 19, 2020 Author Posted June 19, 2020 Hi, I used this: #item-5eebf7d8a5028a07b4437cc5 .sqs-add-to-cart-button { display: none !important; }
paul2009 Posted June 19, 2020 Posted June 19, 2020 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. Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.
RichardR Posted June 19, 2020 Author Posted June 19, 2020 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.