Skip to main content
Login Join
Snippet · PHP

Remove WooCommerce Product Breadcrumbs

Shared by Amit Dholiya · August 26, 2026 · @woocommerce_before_main_content

Back to Snippets

If you want a cleaner WooCommerce product page, you can remove the default breadcrumb navigation from your product pages with a simple action hook.

Steps

  1. Open your theme’s functions.php file.
  2. Add the code below.
  3. Save the file.
  4. Refresh your WooCommerce product page.

Done — the WooCommerce breadcrumbs will no longer appear on product pages.

function remove_product_breadcrumbs() {

    if ( is_product() ) {
        remove_action(
            'woocommerce_before_main_content',
            'woocommerce_breadcrumb',
            20
        );
    }
}

add_action(
    'wp',
    'remove_product_breadcrumbs'
);
Know a different way to do this? Add your approach as a variation so folks can compare them side by side.
Submit a variation

0 comments