I would like to hide the shopping cart icon, if the cart is empty. The same question has been asked before, but the solution does not work, since the cart icon is not part of the standard navigation list. The HTML structure is now: .menu-bar-items > span.has-items
Here is the CSS I tried:
.menu-bar-items .wc-menu-item {
background-color: var(--green-special-color);
transition: all 500ms ease;
}
.menu-bar-items .wc-menu-item:hover {
background-color: var(--darker-green-color);
}
.menu-bar-items span:not(.has-items) {
display: none;
}
Looks like a pretty easy thing to do, but I can’t get it to work.
Thank you very much!