×

 

Home Contact Us Payments SC Commerce SC Commerce Docs SC Commerce Snippets

Simply Computing

We make websites. Simple.

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', 'sc_woo_change_breadcrumb_home_text');

function sc_woo_change_breadcrumb_home_text($defaults) {

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

}
	
   View Raw Code ID: 91102