Removing Breadcrumbs in WooCommerce

The Solution:

Go to the functions.php file in your theme’s folder (i.e. /wp-content/themes/your-theme/functions.php) and add the following code before the end of the file and before the ?> (if it exists):

[crayon lang=”php”]remove_action( ‘woocommerce_before_main_content’,’woocommerce_breadcrumb’, 20, 0);[/crayon]


The Explanation:

WooCommerce is a fantastic ecommerce solution; but recently, while working on this very website, we found the need to remove the breadcrumbs from the WooCommerce built-in function.
[crayon lang=”php”]<?php do_action(‘woocommerce_before_main_content’); ?>[/crayon]

Breadcrumbs in WooCommerce look like this: