Skip to main content
Login Join
Snippet · PHP

Change WooCommerce Product Breadcrumb Separator

Shared by Amit Dholiya · August 25, 2026 · @woocommerce_breadcrumb_defaults

4 views
Back to Snippets

You can customize the separator used between items in the WooCommerce breadcrumb navigation. This is useful for matching your website’s design and branding.

Steps

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

Done — the default breadcrumb separator will be replaced with your custom separator.

Output

Before:
Home → Shop → Product

After:
Home / Shop / Product

Customize the Separator

You can use different separators:

function change_woocommerce_breadcrumb_separator( $defaults ) {
    $defaults['delimiter'] = ' / ';
    return $defaults;
}

add_filter(
    'woocommerce_breadcrumb_defaults',
    'change_woocommerce_breadcrumb_separator'
);
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