Jump to content

Keep cart icon on bottom right corner shown except for some pages

Go to solution Solved by Web_Solutions,

Recommended Posts

Posted

I currently have code to make the Cart icon visible on the bottom right corner at all times.

//keep cart shown
div#floatingCart {
    display: block !important;
}
body#cart {
    header#header, footer.sections {
display: none !important;
}}

Is there a way to hide it on certain pages?

Hide cart icon on these pages:

I only need the cart for this section of the site: https://www.jonoyuen.com/mutantmade

  • Replies 5
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution
Posted
7 hours ago, JonoY said:

I currently have code to make the Cart icon visible on the bottom right corner at all times.

//keep cart shown
div#floatingCart {
    display: block !important;
}
body#cart {
    header#header, footer.sections {
display: none !important;
}}

Is there a way to hide it on certain pages?

Hide cart icon on these pages:

I only need the cart for this section of the site: https://www.jonoyuen.com/mutantmade

Add these code on Custom CSS panel in Website Utilities Website Tools > Custom CSS.

#collection-611c5220270bdd2b105d10e6, #collection-611b5f8ff0cb0b6c23412dff, #collection-611c41133910594454b70966 {
    #floatingCart {
        display: none !important;
    }
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Posted
6 hours ago, JonoY said:

Sorry @Web_Solutions I noticed it's still coming up in the internal pages for the sections:

https://www.jonoyuen.com/personal/skate-bums

https://www.jonoyuen.com/work/telstra-discovery-store

Is there a way to hide it from those pages too?
They don't seem to have collection IDs, only item IDs?

Replace the previous code with the code below.

#collection-611c5220270bdd2b105d10e6, .collection-611b5f8ff0cb0b6c23412dff, .collection-611c41133910594454b70966 {
  #floatingCart{
    display: none !important;
  }
}

 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

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.