[Resolved] Hide Cart in Menu When Empty not working

Home Forums Support [Resolved] Hide Cart in Menu When Empty not working

Home Forums Support Hide Cart in Menu When Empty not working

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1489939
    George

    The code provided here for hiding the cart when empty, doesn’t work (even with !important added).

    I believe that’s because, at least in my case or in the latest GP versions, showing the cart from the Customizer, adds a div with a class of menu-bar-items outside the menu markup. I found that the correct CSS to hide it now is the following:

    .mobile-bar-items.wc-mobile-cart-items:not(.has-items),
    .main-navigation .wc-menu-item:not(.has-items) {
        display: none;
    }

    I haven’t checked the mobile bar functionality.

    Is that a recent change?

    #1490372
    David
    Staff
    Customer Support

    Hi George,

    yes thats correct – Leo has updated the doc. Thanks for pointing that out.

    #1491648
    George

    Thank you, David.

    #1491690
    David
    Staff
    Customer Support

    You’re welcome

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