Hi, I would like to add a (0) next to CART when customers doesn’t have any items added to the cart
Topic summary
A user seeks to display “(0)” next to their cart icon when no items are present.
A solution is provided involving CSS customization:
Steps:
- Navigate to Shopify admin → Online Store → Themes
- Click Actions → Edit code on the active theme
- Locate the CSS file (base.css, style.css, or theme.css) in the Assets folder
- Add the following CSS at the bottom:
a#cart-icon-bubble.cart-icon-bubble:has(.cart-empty):after {
content: "(0)";
}
- Save changes
The solution appears complete, with the responder requesting acknowledgment through likes and marking the post as solved.
1 Like
Check this one.
- From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
- Find the theme that you want to edit and click on “Actions” and then “Edit code”.
- In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
a#cart-icon-bubble:has(.icon-cart-empty):after {
content: "(0)";
}
- And Save.
- Result:
Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!
Please, dont forget to LIKES, thanks!

