Guest Posted May 13, 2021 Share Posted May 13, 2021 (edited) Site URL: https://www.honeycuttboutique.com/ Hi. im trying to add the code <style> .product-price, .product-quantity-input, .sqs-add-to-cart-button-wrapper { display: none; } </style> to page>settings>advanced>page header injection (to remove the add to cart button on that whole page) but its not working for me. One of the style tags is highlighted and im not sure how to fix it. What should i do? I have version 7.1 Edited May 13, 2021 by kikiashley Link to comment
creedon Posted May 13, 2021 Share Posted May 13, 2021 The style tag being hi-lighted does not indicate an error. It's just something the code editor does. Nothing grabs my eye as far as an error goes. Post your site-wide password so we can take a look at your issue. Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
creedon Posted May 14, 2021 Share Posted May 14, 2021 (edited) I did notice something funky going on with the code. From what I can tell it looks something like the following. A script tag is inside a style tag which is not proper syntax. You want your code to look something more like the following. <style> .ProductItem-details .ProductItem-product-price, .ProductItem-details .product-quantity-input, .ProductItem-details .sqs-add-to-cart-button-wrapper { display : none; } </style> <script id="mcjs"> !function(c,h,i,m,p){m=c.createElement(h),p=c.getElementsByTagName(h)[0],m.async=1,m.src=i,p.parentNode.insertBefore(m,p)}(document,"script","https://chimpstatic.com/mcjs-connected/js/users/8089d0e220df25a2e2de0b474/844f28fae6853a5498285d49d.js"); </script> You'll see I tweaked the CSS. Let us know how it goes. Edited May 14, 2021 by creedon Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects. Link to comment
Guest Posted May 14, 2021 Share Posted May 14, 2021 (edited) OMG YOURE A LIFE SAVER!!!! I've been stressing about this for days!🙃 THANK YOU SO MUCH!!! Edited May 14, 2021 by kikiashley Link to comment
sarahJoy2019 Posted August 8, 2022 Share Posted August 8, 2022 Hi, i'd like to do something similar - e.g. remove the price and add to cart button - BUT only to 1 product (& keep the price, inventory, add to cart ecommerce on all the other) e.g. they can but courses, but one is a corporate offer & they need to enquire to get a quote. When I used this code it removed the price & cart button from all of my site. Can you help? advise? Thanks in advance Sarah Link to comment
tuanphan Posted August 10, 2022 Share Posted August 10, 2022 On 8/8/2022 at 11:54 PM, sarahJoy2019 said: Hi, i'd like to do something similar - e.g. remove the price and add to cart button - BUT only to 1 product (& keep the price, inventory, add to cart ecommerce on all the other) e.g. they can but courses, but one is a corporate offer & they need to enquire to get a quote. When I used this code it removed the price & cart button from all of my site. Can you help? advise? Thanks in advance Sarah Edit that product > Additional Info > Add a Code Block > Use this code <style> /* Remove add to cart */ div.sqs-add-to-cart-button-wrapper, .product-price { display: none !important; } </style> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care 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