Hi all,
Hoping someone can please help me. Im wanting to remove the cart counter bubble and replace it with a cart counter like in this image.
![]()
store URL: www.tydejewellery.com
A user seeks to replace Dawn theme’s default cart counter bubble with a numerical counter displayed in parentheses format, like “(2)”.
Solution provided:
base.css file in the Assets folder::before and ::after pseudo-elementsFollow-up request:
The user asks how to display “(0)” when the cart is empty.
Additional solution:
.cart-icon-bubble:has(.icon-cart-empty)::afterBoth solutions require editing the theme’s base.css file through the Shopify admin code editor.
Hi all,
Hoping someone can please help me. Im wanting to remove the cart counter bubble and replace it with a cart counter like in this image.
![]()
store URL: www.tydejewellery.com
HI @vanessabate You store has password.
Hi @vanessabate ,
To change your cart counter to a number with parentheses, please follow the instructions below
.header__icon--cart .cart-count-bubble {
background: transparent;
height: 100%;
width: 100%;
font-size: 20px;
top: 0;
color: black;
margin-left: 0.5rem;
}
.header__icon--cart .cart-count-bubble:before {
content: "( ";
}
.header__icon--cart .cart-count-bubble:after {
content: ")";
}
thankyou. Is there a way for it to display (0) when the cart is empty?
Hi @vanessabate ,
Please add the code below to show (0) on empty cart.
a#cart-icon-bubble:has(.icon-cart-empty):after {
content: "(0)";
position: absolute;
left: 40px;
}