• Resolved gscottthoms

    (@gscottthoms)


    I’ve added a cart icon on my mobile menu bar that links to the cart page. I’ve added an html block next to it to show the number of items in the cart as well. I wanted to find a way to hide both of them if the number of items in the cart is zero. I assume the only way to do that currently would be through CSS, does anyone know how this could be done?

    I used the bottom section of the guide to implement the cart:
    https://www.megamenu.com/documentation/woocommerce/

    • This topic was modified 3 years, 7 months ago by gscottthoms.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author megamenu

    (@megamenu)

    Hi gscott,

    As it relates to a pro feature, please can you get in touch through https://www.megamenu.com/support/ ? Also include a link to this topic. We’ll send some code that adds a class to the body tag when the cart is empty, and use CSS to hide the cart icon when that class is present.

    Regards,
    Tom`

Viewing 1 replies (of 1 total)
  • The topic ‘Hide cart icon when empty’ is closed to new replies.