Jump to content

How Can I Remove Cart from Individual Pages?

Go to solution Solved by creedon,

Recommended Posts

  • Solution

Add the following to Design > Custom CSS.

/* hide cart on all pages */

.Cart {

  display : none;
  
  }

/* show cart on some pages */

.collection-type-products .Cart, /* products page */
#cart .Cart /* cart page */

  {
  
    display : block;
    
    }

This is for v7.0 using the Brine template family.

Let us know how it goes.

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
2 hours ago, creedon said:

Add the following to Design > Custom CSS.

/* hide cart on all pages */

.Cart {

  display : none;
  
  }

/* show cart on some pages */

.collection-type-products .Cart, /* products page */
#cart .Cart /* cart page */

  {
  
    display : block;
    
    }

This is for v7.0 using the Brine template family.

Let us know how it goes.

Hi creedon, that worked brilliantly, thank you!

-Jesse 

Link to comment
  • 1 year later...
On 9/2/2023 at 6:41 PM, VeredBrett said:

Hi Creedon - thanks for the code - I need your help with it as I'm new to this. I also want to hide the cart icon on specific store pages on my site. How do I apply your code (besides copying it to my custom CSS)? A newbie here... what needs to be replaced with that? TIA

Add it to Store Page Settings > Advanced > Code Injection Header

<style>
.Cart {

  display : none;
  
  }
</style>

page-header1-min.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!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

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