Looking to remove WooCommerce breadcrumbs in your WordPress theme? All you may need is to remove the action through your theme’s functions.php file.
Remove WooCommerce breadcrumbs through your functions file
In order to remove breadcrumbs in WooCommerce, you simply need to remove an action from the woocommerce_before_main_content hook as per the below example.
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 );
A breakdown of the code above:
- woocommerce_before_main_content is the WooCommerce hook (found in archive-product.php).
- woocommerce_breadcrumb is the hooked action.
- 20 is the location/order of which this action is hooked by.