Woocommerce – Hiding div based on [data-counter]
I'm trying to hide a cart icon on my website when the cart is empty. I'm not an expert in jQuery but I know the basics. $(document).ready(function() { if($(".button-icon[data-counter]").is() == "0"){ $(".menu-cart-wrapper").hide(); }else{ $(".menu-cart-wrapper").show(); } }); ``` <div class="menu-cart-wrapper"> <a…