How to remove WooCommerce breadcrumbs

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:

  1. woocommerce_before_main_content is the WooCommerce hook (found in archive-product.php).
  2. woocommerce_breadcrumb is the hooked action.
  3. 20 is the location/order of which this action is hooked by.