How To Disable WooCommerce Breadcrumbs In WordPress

WooCommerce is our favorite e-commerce solution and it pairs perfectly with our love for WordPress. It has a plethora of useful search engine optimization (SEO) features out of the box. It makes it easy to manage inventory and is extendable like everything else in WordPress.

There are some WooCommerce features that are not necessary for every use case. Sometimes, other plugins, such as Yoast SEO perform those functions more efficiently. In this tutorial, we will be talking about how to disable WooCommerce breadcrumbs within WordPress.

WooCommerce has breadcrumbs built-in by default and they are not using structured markup like Yoast SEO. In addition, they are often times disabled in themes who use their own breadcrumb solution. I find it useful to add breadcrumbs to themes, this way users can truly customize their e-commerce shop. Regardless, removing the code is incredibly straightforward (as long as your theme is using default WooCommerce functions).

Add This Code: Disable WooCommerce Breadcrumbs

If you are looking to disable WooCommerce breadcrumbs, add the following line to your functions.php file or your site-specific plugin. It removes any traces of breadcrumbs on the front-end. If it does not, then your theme is likely using another breadcrumb implementation.f

function remove_wc_breadcrumbs() {
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 );
add_action( 'init', 'remove_wc_breadcrumbs' );

Side Note: If you are using WooCommerce, but simply want to change the separator to match Yoast SEO’s breadcrumbs (or any other separator) you can do that as well! The below code is what I have used to help unify the style, without needing to remove it or change implementation!

function change_woo_breadcrumb_delimiter( $defaults ) {
$defaults['delimiter'] = '»';
return $defaults;
add_filter( 'woocommerce_breadcrumb_defaults', 'change_woo_breadcrumb_delimiter' );


scott hartley

About the author

Scott is a web performance geek, lover of all things coffee, and avid video game player. His WordPress work delves into web performance, web security, and SEO.

Leave a Comment