How to indicate an empty cart to customers?

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.

Summarized with AI on November 15. AI used: claude-sonnet-4-5-20250929.

Hi, I would like to add a (0) next to CART when customers doesn’t have any items added to the cart

1 Like

Hi @danielcorrea

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)";
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Please, dont forget to LIKES, thanks!