Archived topic
How to Show '0' When No Items Are in Cart?
3 replies · Started by Willya on March 11, 2023
Viewing posts 1–4 of 4
Hi,
On my current cart menu, when a customer hasn't added any items to the cart, the cart quantity doesn't show the number 0, but there is no value or nothing displayed.
How can I display the number "0"?
Hi there,
Try this CSS:
.cart-contents>span.number-of-items.no-items::after {
content: "0";
}
Learn how to add CSS: https://docs.generatepress.com/article/adding-css/
Let me know if this helps :)
Thank you Leo. It worked!
No problem :)
This archived topic is closed to new replies.