PEARLERwork Posted June 22, 2022 Share Posted June 22, 2022 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? 𝓚𝓪𝓽𝓲𝓮 ✦✦ ⓅⒺⒶⓇⓁⒺⓇ.ⓌⓄⓇⓀ ➸ Link to comment
Beyondspace Posted June 22, 2022 Share Posted June 22, 2022 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? Can you share the direct link to this page? I can not find it on your above link tuanphan 1 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
tuanphan Posted June 22, 2022 Share Posted June 22, 2022 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? 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
PEARLERwork Posted June 24, 2022 Author Share Posted June 24, 2022 Thanks very much. Do you know why it's not appearing on other pages? @tuanphan / @bangank36 The page is https://purposecon.squarespace.com/shop Pass: pearler For positioning, this fixed it: .floating-cart { top: 20px !important; bottom: auto !important; } 𝓚𝓪𝓽𝓲𝓮 ✦✦ ⓅⒺⒶⓇⓁⒺⓇ.ⓌⓄⓇⓀ ➸ Link to comment
Solution tuanphan Posted June 24, 2022 Solution Share Posted June 24, 2022 Other pages, has this code .floating-cart.hidden { display: none; } Add this CSS to override it .floating-cart.hidden { display: block !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
PEARLERwork Posted June 28, 2022 Author Share Posted June 28, 2022 @tuanphan Awesome, thank you 𝓚𝓪𝓽𝓲𝓮 ✦✦ ⓅⒺⒶⓇⓁⒺⓇ.ⓌⓄⓇⓀ ➸ Link to comment
jasbrandstudio Posted November 1, 2023 Share Posted November 1, 2023 (edited) 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 November 1, 2023 by jasbrandstudio Link to comment
tuanphan Posted November 3, 2023 Share Posted November 3, 2023 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> 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
jasbrandstudio Posted November 3, 2023 Share Posted November 3, 2023 Great, thank you. Is it possible to hide this on the shopping cart page? Link to comment
tuanphan Posted November 6, 2023 Share Posted November 6, 2023 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
jasbrandstudio Posted November 6, 2023 Share Posted November 6, 2023 Thank you! Sorry to be annoying, is there a way to make the cart appear only after something has been added to it? Link to comment
paul2009 Posted November 6, 2023 Share Posted November 6, 2023 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
jasbrandstudio Posted November 6, 2023 Share Posted November 6, 2023 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment