Home

Friday, January 12, 2018

How to remove woocommerce breadcrumb from product page ?

Add the following line of code to the WordPress theme functions.php file:

remove_action( 'woocommerce_before_main_content','woocommerce_breadcrumb', 20, 0);

add_action('template_redirect', 'remove_shop_breadcrumbs' );
function remove_shop_breadcrumbs(){
if (is_single()) {
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0);
}
}

No comments:

Post a Comment

rathoddhirendra.blogspot.com-Google pagerank and Worth