Jump to content

How do I hide the "add to cart" button on only one product page

Recommended Posts

Posted

We sell only some items on our website and I need to hide the add to cart button on only a few pages and not throughout the entire site. I switched templates to the "Impact" template and now the "add to cart" button is showing on every product page.

  • Replies 6
  • Views 2k
  • Created
  • Last Reply
Posted
7 hours ago, Michellenk said:

Thank you so much! You're a life saver!

I see on tablet, the text a bit narrow, on about us page

You can add this to Design > Custom CSS to increase width

/* about us text width */
@media screen and (max-width:991px) and (min-width:768px) {
div#page-55cb9caae4b04e605ee2d6da>.row>.span-8 {
    width: 100%;
}
}

image.thumb.png.63f09c1c03fb4135937d7259829c8aa2.png

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!)

Posted

Thank you! very helpful!

Unfortunately the first code to hide the "add to cart" stopped working and now it is showing on all products again.

I pasted the code into each page under settings -> code injection.  (see screenshot below)

Do i need to put the code on each product individually instead?

https://nktextile.com/solids/charisma

Yesterday I added a "scroll to top" code, could this have interfered?

Untitled.jpg

Posted

Now it is hiding the cart under everything again (still incorrect)

5 minutes ago "add to cart" was on every product and just now "add to cart" is hidden on everything

I am really not sure whats going on.

a few minutes ago.jpg

now.jpg

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.