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