Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Dani

    (@danicasati)

    I found the solution (adding this code in FUNCTIONS.PHP):

    add_action( 'wp_footer', function() {
        if ( WC()->cart->is_empty() ) {
            echo '<style type="text/css">.topbarmenu .kad-cart-total li{ display: none; !important}</style>';    
        }
    });
    hannah

    (@hannahritner)

    Glad you were able to find a solution! Let us know if there’s anything else we can help you with.

    Best,
    Hannah

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide topbar cart icon’ is closed to new replies.