Tagged: x Author Posts March 22, 2017 at 1:39 am #1415866 thecashbagParticipant How can I hide the WooCommerce menu shopping cart so that it only shows if it has items in the cart? See here: https://elementpaints.com/shop/acrylic-paint-set/ It need to be “hidden” when empty, and only appear when there are items in the shopping cart. March 22, 2017 at 7:37 am #1416153 ThaiModerator Hi There, Please try with this: https://community.theme.co/forums/topic/hiding-the-navbar-cart-when-empty/#post-378606 Hope it helps! March 27, 2017 at 5:43 am #1421447 thecashbagParticipant Have tried that code, it does not work 🙁 Any other ideas? March 27, 2017 at 6:00 am #1421461 ThaiModerator Hi There, Please update the code to this: jQuery(function($) { if($('.x-cart .outer').html()=="0 Items") { $('.x-menu-item-woocommerce').css('display','none'); } }); Hope it helps 🙂 March 29, 2017 at 8:20 am #1424110 thecashbagParticipant That works great! Thanks you 😀 March 29, 2017 at 10:35 am #1424263 RahulModerator Glad it worked for you. Let us know if we can help with anything else. Thanks. 🙂 Author Posts