Site logo

[Resolved] How to Show ‘0’ When No Items Are in Cart?

Home Forums Support [Resolved] How to Show ‘0’ When No Items Are in Cart?

Home Forums Support How to Show ‘0’ When No Items Are in Cart?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2564434
    Willya

    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”?

    #2564460
    Leo
    Staff
    Customer Support

    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 🙂

    #2564470
    Willya

    Thank you Leo. It worked!

    #2565111
    Leo
    Staff
    Customer Support

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.