• This code remove breadcrumbs from all site.

    add_action( 'init', 'jk_remove_storefront_breadcrumb' );
    function jk_remove_storefront_breadcrumb() {
    		remove_action( 'storefront_content_top', 'woocommerce_breadcrumb', 	10 );
    }

    But what to do if i need remove breadcrumbs only from cart and checkout page?

    I try to

    add_action( 'init', 'jk_remove_storefront_breadcrumb' );
    function jk_remove_storefront_breadcrumb() {
    	if ( is_cart() || is_checkout() ) {
    		remove_action( 'storefront_content_top', 'woocommerce_breadcrumb', 	10 );
     	}
    }

    But it didn’t work

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Remove breadcrumbs from checkout page’ is closed to new replies.