Viewing 1 replies (of 1 total)
  • Hi,

    I just spent the afternoon trying to figure this out and here is what I came up with.
    Add this to your child functions.php file –

    add_action( 'init', 'custom_remove_header_cart');
    function custom_remove_header_cart() {
    	remove_action( 'storefront_header', 'storefront_header_cart', 60 );
    	add_action( 'storefront_header', 'custom_header_cart', 60);
    }
    
    function custom_header_cart() {
    ?>
    <ul class="site-header-cart menu">
    			<li class="<?php echo esc_attr( $class ); ?>">
    				<?php storefront_cart_link(); ?>
    			</li>
    		</ul>
    <?php
    }
Viewing 1 replies (of 1 total)
  • The topic ‘disable cart dropdown in header’ is closed to new replies.