Website Building » WooCommerce » Where Do I Edit WooCommerce Breadcrumbs?

Where Do I Edit WooCommerce Breadcrumbs?

Last updated on January 12, 2023 @ 7:19 pm

Breadcrumbs are a great way to help your customers navigate your website, and they can also be a great way to improve your SEO. But where do you edit WooCommerce breadcrumbs?

The good news is that there are a few different ways that you can edit WooCommerce breadcrumbs, and we’re going to show you how. We’ll also give you some tips on how to style them so they look great on your site.

Option 1: Edit WooCommerce Breadcrumbs via the WordPress Customizer

One of the easiest ways to edit WooCommerce breadcrumbs is via the WordPress Customizer. Just go to Appearance > Customize in your WordPress dashboard and then click on the “Breadcrumbs” tab. Here you can change the “Homepage breadcrumb” and “Shop page breadcrumb” text, as well as the “Breadcrumb separator” character.

Option 2: Edit WooCommerce Breadcrumbs in Your Theme’s Functions.php File

If you want more control over your WooCommerce breadcrumbs, then you can edit them in your theme’s functions.php file. Just add the following code to your file:

PRO TIP: If you are not familiar with code or do not feel comfortable editing code, we recommend that you consult with a WooCommerce expert before making any changes. Editing WooCommerce breadcrumbs can be tricky and if not done correctly, could break your site.
function my_change_breadcrumb_home_text( $defaults ) {
$defaults['home'] = 'My Shop';
return $defaults;
}
add_filter( 'woocommerce_breadcrumb_defaults', 'my_change_breadcrumb_home_text' );

Option 3: Use a Plugin to Change WooCommerce Breadcrumbs

If you don’t want to edit any code, then you can use a plugin to change your WooCommerce breadcrumbs. We recommend the WooCommerce Breadcrumbs plugin, which lets you change the breadcrumb separator, home text, and shop text from its settings page.

How to Style WooCommerce Breadcrumbs

Once you’ve edited the text of your breadcrumbs, you might also want to style them so they look better on your site. For example, you might want to:

  • Change the Font Size or Color: You can do this by adding some CSS code to your theme’s stylesheet. For example, the following code would make all of your breadcrumbs bold and green:
WooCommerce .woocommerce-breadcrumb {font-weight: bold;color: green;}
  • Center Your Breadcrumbs: You can center your breadrcrumbs by adding this CSS code to your stylesheet:
.WooCommerce .woocommerce-breadcums {text-align: center;}
  • Add an Icon Before Each Breadrcrumb Item: You can use an icon font like Font Awesome or Ionicons to add an icon before each of your breadrcrumb items. For example, the following code would add a “home” icon before the home link in your breadrcrubs:
.woocommerce-breadcums li::before {font-family: "FontAwesome";content:"\f015";margin-right: 0.5em;}

Where Do I Edit WooCommerce Breadrcrubs?

You can edit WooCommerce breadrcrubs via the WordPress Customizer, by editing your theme’s functions.php file, or by using a plugin.

Kathy McFarland

Kathy McFarland

Devops woman in trade, tech explorer and problem navigator.