christopher1 Posted April 3, 2022 Share Posted April 3, 2022 Site URL: https://brakesandbriskets.squarespace.com/ Hello, please i want to remove add to cart button on my website and i have been trying to add some code i found on this forum inside the custom css but it not working. Someone should please help me out Link to comment
Solution paul2009 Posted April 3, 2022 Solution Share Posted April 3, 2022 (edited) On a Squarespace 7.1 website, you should be able to hide the Add to Cart button by adding the following to Design > Custom CSS: .sqs-add-to-cart-button-wrapper { display: none!important; } Did this help? Please give feedback by clicking an icon below ⬇️ Edited December 10, 2023 by paul2009 cami_leisk and Agostinha 1 1 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
rossempson Posted April 4, 2022 Share Posted April 4, 2022 hello I hope you might also be able to help me I am running 7.1. site doesn't say what template I chose - but anyway. I have an all prints product section....shop I just want to remove the cart from all pages / disable for now / hide cart just want to use the (all prints product section) as a display gallery section. is there any custom code to do so ? otherwise I am not sure - I like the way the products are displayed much more than the portfolio and gallery pages the page is still being built so it private ? so cant show you? probably this i s very unhelpful - sorry thank you ross Link to comment
paul2009 Posted April 4, 2022 Share Posted April 4, 2022 37 minutes ago, rossempson said: I have an all prints product section. I just want to remove the cart from all pages/disable for now Firstly, all Squarespace 7.1 sites are the same. There aren't different template names with different features. You can therefore use the Custom CSS that I posted above to remove the 'Add to Cart' button from your Product Detail Pages. You can remove the cart icon from your site's header as follows: 1. Click Edit on any page on your site, then click Edit Site Header. 2. In the window that appears, click Elements. 3. Switch the Cart toggle off. 4. Click out of the window, then hover over Done and click Save. Did this help? Please give feedback by clicking an icon below ⬇️ creedon and Agostinha 1 1 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
Dr_KMcB Posted July 20, 2022 Share Posted July 20, 2022 Hi @paul2009 if we use custom code like this one, and SQSP updates their product code in a way that requires updating the custom code, do you know if there's a way for us as to know where the updated custom code would be? I'm currently trying to set up my first online shop without the online buying function, so want to hide the 'add to cart' button... and am concerned that if I use this custom code above, SQSP will change something and I wont know what to do. Noob I know. Thanks also for sharing the code above! I'm on 7.1 at https://drkmcb.com/ Link to comment
paul2009 Posted July 20, 2022 Share Posted July 20, 2022 1 hour ago, Dr_KMcB said: If we use custom code like this one, and SQSP updates their product code in a way that requires updating the custom code, do you know if there's a way for us as to know where the updated custom code would be? As you say, a software update could break third party code. Squarespace do make frequent changes to their platform and do so without warning, but they do this so they can fix bugs and send out new features without requiring users to take any manual 'maintenance' action. There's little you can do to prevent some code from being affected by an update, but it obviously helps to source your code from someone who is trusted, but this doesn't guarantee that the code won't break at some point, it just makes it less likely that it will happen often or that it will do harm. Indeed, Squarespace can occasionally make changes that break their own code. It's a fact of life with software updates. If you will be relying on some code that will be critical to your business, I recommend that you book a Software Developer to write code for you and that you ensure they can be booked again later if changes become necessary. Code given away free on forums hasn't been designed to be used in mission-critical situations because it: won't include full error-checking won't include version control won't be guaranteed may slow down your website I hope this helps. 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
Dr_KMcB Posted July 20, 2022 Share Posted July 20, 2022 On 4/3/2022 at 1:15 AM, paul2009 said: .ProductItem-details .sqs-add-to-cart-button-wrapper { display: none!important; } Thank you very much @paul2009 for your answer, that all makes total sense. One question, is the code you provided in April at the top still what you'd suggest to hide the 'add to cart' button? We're adding at the Design>Custom CSS area, but the button still appears (have checked when logged out for what the public would see too). Link to comment
Dr_KMcB Posted July 20, 2022 Share Posted July 20, 2022 (edited) Site URL: https://drkmcb.com/ Hello everyone, I'm trying to work out a way to have an online shop or section for my 'available art' for sale, but without the online check out and ecommerce. The SQSP shop set up is ideal if I can just hide the 'add to cart' button. I've searched around this forum and found paul2009's code from April 2022 which he said add to Design>Custom CSS, but when I do this, the button is still visible (including when I'm logged out/viewing as the public would). I paste the code I tried below so you can all see it. I don't want my shop live until I get all this sorted, but I think you need to be able to see it to help me troubleshoot, so I have made it live but it's not showing in my site navigation. You can see at https://drkmcb.com/shop Thank you! .ProductItem-details .sqs-add-to-cart-button-wrapper { display: none!important; } Edited July 20, 2022 by Dr_KMcB typo Link to comment
ghostplugins Posted July 21, 2022 Share Posted July 21, 2022 Hey @Dr_KMcB - Try this. It should hide the cart in all areas it appears (product part, product blocks, quick view). // Hide Add To Cart Button // .sqs-add-to-cart-button { display: none !important; } Hope this helps! 🙂 Cody and Team, The Ghost Co. 👻 Ghost Plugins: Over 500+ free plugins and templates for Squarespace 🎉 Ghost Marketplace: The very first product-based marketplace for Squarespace Link to comment
Dr_KMcB Posted July 21, 2022 Share Posted July 21, 2022 Hello ghostplugins, thank you so much!! Someone provided me some code last night, from a different platform and it seemed to work. I paste below in case it helps others. I'll try yours ghostplugins if this one stops working! (and maybe it will stop working, as Fluid Engine rolls out to the shop). .sqs-add-to-cart-button-wrapper { display: none !important; } Link to comment
TeaScottFX Posted April 26, 2023 Share Posted April 26, 2023 Hello, It's 2023 and I have the same issue - I would like to hide the add to cart button and can't seem to find the code to do it. I've tried all the codes above, currently, there is no section for me to change the code in the "DESIGN" area. I have to go into the product section and then click the gear > ADVANCED>PAGE HEADER CODE INJECTION. Maybe there is another place or code, any help would be GREATLY appreciated. Agostinha 1 Link to comment
Agostinha Posted May 30, 2023 Share Posted May 30, 2023 Did you manage to find anything? Link to comment
StephanieB Posted May 31, 2023 Share Posted May 31, 2023 @TeaScottFX, Have you tried disabling the add-to-cart button in the header area? Edit site header> Elements> Toggle Off Cart Button. If that still doesn't work, could you share your site so I can have a look at the code, you may need to add some CSS. ✨ S.B-Studio.co✨ Link to comment
jfurniture Posted December 8, 2023 Share Posted December 8, 2023 On 4/3/2022 at 9:15 AM, paul2009 said: When I use the code below, it also hides the 'recommended products' which show further down the product page, below the 'add to cart' button. Anyone know a way I can remove the add to cart without removing recommended products please? .ProductItem-details .sqs-add-to-cart-button-wrapper { display: none!important; } Did this help? Please give feedback by clicking an icon below ⬇️ Link to comment
tuanphan Posted December 10, 2023 Share Posted December 10, 2023 On 12/8/2023 at 9:32 PM, jfurniture said: If you share link to a product, we can check problem easier 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
ClavisPublishing Posted April 9 Share Posted April 9 Hi all, We went from a 7.0 to a 7.1 site and now we have the same issue with the 'add to cart'-button which can't seem to be removed in any way. Can someone please help us with this issue? Example: https://www.clavis-publishing.com/picture-books/p/the-little-christmas-tree-x7s9f-mnrny-y3bww Link to comment
tuanphan Posted Saturday at 07:47 AM Share Posted Saturday at 07:47 AM On 4/9/2024 at 4:06 PM, ClavisPublishing said: Hi all, We went from a 7.0 to a 7.1 site and now we have the same issue with the 'add to cart'-button which can't seem to be removed in any way. Can someone please help us with this issue? Example: https://www.clavis-publishing.com/picture-books/p/the-little-christmas-tree-x7s9f-mnrny-y3bww You can use this CSS code to remove add to cart button .sqs-add-to-cart-button-wrapper { display: none !important; } 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment