How to remove “Home” from WooCommerce Breadcrumbs

How to remove "Home" from WooCommerce Breadcrumbs

Vanja K.
Vanja K.
April 6, 2023
1 min read

An easy-to-add snippet of code that will clean up your single product pages and single blog posts

This was a simple request, but a rather impactful request by one of our clients. Their eCommerce store, made in WooCommerce by our team displays breadcrumbs on top of their page. It’s a great way of showing the customer where they are, but also, a pretty good solution for more onsite links for SEO (Search Engine Optimization) value.

However, the standard breadcrumbs in WordPress and WooCommerce start with “home”. Sure, it’s good to link back to your homepage, but like our client, we can safely guess you’re already linking to it through your logo or a top menu item. In turn, the “home” in the breadcrumb line is redundant and it looks odd. Hence, we’ve removed it fully.

Here is how we do it below. Just copy and paste this into your functions.php, preferably through an FTP/SFTP app, not in the WordPress editor itself. It’s safer, and easier to revert back if things go wrong. However, if you’re unsure how to do this or have doubts about your skill level, feel free to contact us and we’ll happily handle this for you at an affordable rate.

/** Remove Home from WooCommerce single pages breadcrumbs **/

add_filter('woocommerce_breadcrumb_defaults', function ($defaults) {

$defaults['delimiter'] = '<span class="breadcrumb_delimiter"> / </span>';
return $defaults; //returns rest of links

We got more related posts, check them out! Related Posts