A simple, powerful and independent e-commerce platform.
Sell anything with ease.

Rename ‘home’ in breadcrumb

You can change the “Home” link on the breadcrumb to suit your site arrangement.

/**
 * Rename 'home' in breadcrumb
 */
 
add_filter('woocommerce_breadcrumb_defaults', 'cc_change_breadcrumb_home_text');

function cc_change_breadcrumb_home_text($defaults) {

  // Change the breadcrumb home text from 'Home' to 'Products'
  $defaults['home'] = 'Products';
  return $defaults;

}
View Raw Code ID: 1102