# (Squarespace) How to hide Cart when Cart is empty

**URL:** <https://community.elfsight.com/t/squarespace-how-to-hide-cart-when-cart-is-empty/128339>\
**Category:** Platform Tips\
**Tags:** squarespace\
**Created:** [June 28, 2025, 7:35am UTC](https://community.elfsight.com/t/squarespace-how-to-hide-cart-when-cart-is-empty/128339 "2025-06-28T07:35:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuanphan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/tuanphan/32/3165_2.png) [@tuanphan](https://community.elfsight.com/u/tuanphan)\
**Post date:** [June 28, 2025, 7:35am UTC](https://community.elfsight.com/t/squarespace-how-to-hide-cart-when-cart-is-empty/128339/1 "2025-06-28T07:35:11Z")

</div>

To hide Cart when Cart is Empty.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/8/c/8c91d53cdda4349b3cb05be7b48aa34d090bd3b7.png)

You can use this code to Custom CSS.

```auto
a.cart-style-icon.cart-quantity-zero {
    display: none;
}

```

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/f/9/f9f237c4fd0e2cf54b27bd828c4716d51fc52add.jpeg)
