How To Disable WooCommerce Breadcrumbs In WordPress
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.ffunction 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
Founder & CEO, Sert Media
Founder and CEO of Sert Media, a Nashville-based digital marketing agency. Scott has spent over 15 years helping businesses grow through SEO, web performance optimization, and strategic digital marketing. His deep expertise in WordPress development, site speed, and technical SEO has guided hundreds of brands toward measurable results. When he's not auditing Core Web Vitals or refining campaign strategies, he's writing about the tools, techniques, and trends shaping the modern web.
Related Articles
How to Add Security Headers to WordPress Using Cloudflare Transform Rules
If you've ever run your WordPress site through securityheaders.com and gotten a D or F…
Use This Cloudflare Rule To Reduce Plugin Hack Attempts
Cloudflare Firewall Rules give you a lot of flexibility in further protecting your website. Here…
Set Up Cloudflare's Automatic Platform Optimization Feature
Automatic Platform Optimization (APO) is a new feature from Cloudflare that allows you to cache…