MBurleson Posted October 28, 2019 Share Posted October 28, 2019 I am using the Brine - Foster template. Link to comment
brandon Posted October 29, 2019 Share Posted October 29, 2019 Something simple like this should work: .Cart[aria-label^='0'], .Cart:not([aria-label]) { display: none; } Let me know how that works for you. It's not something I heavily tested. If it does work, it could be modified using opacity and transitions instead. Related: https://forum.squarespace.com/topic/2639-hide-cart-until-items-in-the-cart/?tab=comments#comment-15354 https://forum.squarespace.com/topic/4550-hide-cart-icon-unless-product-in-cart/?tab=comments#comment-26867 Also, is it just me or is there no way to get to the checkout on mobile using the Foster template? Using the demo site, there was no link to the checkout at any point in my mock-shopping. -Brandon If a response helped you out, send a 'Like' 👍 (bottom-right) and/or 'Upvote' (top-left) Link to comment
paul2009 Posted October 30, 2019 Share Posted October 30, 2019 Great use of the accessibility attribute 🙂  On 10/29/2019 at 1:01 PM, brandon said: is it just me or is there no way to get to the checkout on mobile using the Foster template It's an unfortunate setting for a Squarespace demo! They've set MOBILE: CART to Position: Hide in Site Styles. About: Squarespace Circle Leader since 2017. I value honesty, transparency, diversity and great design ♥.Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™. Content: Links in my posts may refer to SF Digital products or may be affiliate links. Catch up on all the release notes and announcements 2023 [for Circle members only]. There's a public version here too!If I helped, you can thank me by clicking one of the emojis below. If you prefer, you can buy me a coffee.Improve your online store with our extensions. Link to comment
helloVladstudio Posted December 23, 2019 Share Posted December 23, 2019 @brandon works perfectly on York incl. mobile. No extra scripts needed. Very clean solution ! Link to comment
Agnieszka Posted April 16, 2020 Share Posted April 16, 2020 On 10/30/2019 at 12:01 AM, brandon said: Something simple like this should work: .Cart[aria-label^='0'], .Cart:not([aria-label]) { display: none; } Let me know how that works for you. It's not something I heavily tested. If it does work, it could be modified using opacity and transitions instead. Related: https://forum.squarespace.com/topic/2639-hide-cart-until-items-in-the-cart/?tab=comments#comment-15354 https://forum.squarespace.com/topic/4550-hide-cart-icon-unless-product-in-cart/?tab=comments#comment-26867 Also, is it just me or is there no way to get to the checkout on mobile using the Foster template? Using the demo site, there was no link to the checkout at any point in my mock-shopping. -Brandon @brandon Thank you so much for this super simple clean code! It works perfectly on Maple, Brine 🙂 Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.