Jump to content
Go to solution Solved by tuanphan,

Recommended Posts

1 hour ago, pearler1570048501 said:

Site URL: https://purposecon.squarespace.com/?password=pearler

I'm trying to style and reposition the floating cart. Any ideas? My codes don't seem to work:

.floating-cart {
  top: 20px !important;
  right: 20px !important;
}

It also doesn't seem to appear on non-shop related pages?

Screen Shot 2022-06-22 at 2.51.22 pm.png

Can you share the direct link to this page? I can not find it on your above link

image.thumb.png.53d5aca5559b293334c58a17f33e48b6.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox - Lightbox captions only mode)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 No-code customisations for Squarespace
🚀 Learn how to rank new pages on Google in 48 hours!

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

Link to comment
3 hours ago, pearler1570048501 said:

Site URL: https://purposecon.squarespace.com/?password=pearler

I'm trying to style and reposition the floating cart. Any ideas? My codes don't seem to work:

.floating-cart {
  top: 20px !important;
  right: 20px !important;
}

It also doesn't seem to appear on non-shop related pages?

Screen Shot 2022-06-22 at 2.51.22 pm.png

It has already right: 20px, so you need to use this code only

.floating-cart {
    top: 20px !important;
}

(I added !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
  • 1 year later...

Hi!

I'm having an issue where the CSS doesn't always seem to be active. When I view the site in edit mode, the css seems to apply. In an incognito tab, the css is not present. 

https://bluebird-orange-h4kp.squarespace.com/config/

Password: path

 

This is the CSS I'm using:

.floating-cart {
 background-color: #918771!important;
  color: white;
  border-radius: 100%;
bottom: 80px!important;
  right: 35px;
z-index: 99999999!important;
}

.floating-cart.hidden {
    display: block !important;
}

I'd also like to hide the cart on the shopping cart page, as it isn't necessary there.

Edited by jasbrandstudio
Link to comment
On 11/1/2023 at 11:22 PM, jasbrandstudio said:

Hi!

I'm having an issue where the CSS doesn't always seem to be active. When I view the site in edit mode, the css seems to apply. In an incognito tab, the css is not present. 

https://bluebird-orange-h4kp.squarespace.com/config/

Password: path

 

This is the CSS I'm using:

.floating-cart {
 background-color: #918771!important;
  color: white;
  border-radius: 100%;
bottom: 80px!important;
  right: 35px;
z-index: 99999999!important;
}

.floating-cart.hidden {
    display: block !important;
}

I'd also like to hide the cart on the shopping cart page, as it isn't necessary there.

Move your code to bottom of CSS box, or add this code to Code Injection > Header

<style>
  .floating-cart {
 background-color: #918771!important;
  color: white;
  border-radius: 100%;
bottom: 80px!important;
  right: 35px;
z-index: 99999999!important;
}

.floating-cart.hidden {
    display: block !important;
}
</style>

image.png.0ed76c9f61b70195b1fae27bc41df164.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
On 11/3/2023 at 8:18 PM, jasbrandstudio said:

Great, thank you. Is it possible to hide this on the shopping cart page?

Use this code to Custom CSS

body#cart .floating-cart {
	display: none !important;
}

or this code to Code Injection

<style>
  body#cart .floating-cart {
	display: none !important;
}
</style>

 

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
1 hour ago, jasbrandstudio said:

is there a way to make the cart appear only after something has been added to it?

See my earlier post here:

Did this help? Please give feedback by clicking an icon below  ⬇️

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

Link to comment

This is great thank you so much!

I applied the styling to .floating-cart and now, when sqs-custom-cart is hidden, the background color applied to floating cart is displayed. I've tried applying this styling to sqs-custom-cart instead, but it doesn't really work as the cart quantity sits outside of that. Do you have any idea how I can overcome that?

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.