×

 

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

Simply Computing

We make websites. Simple.

Change the breadcrumb separator

This code changes the separator in the breadcrumb, for example from the / to the > symbol.

		/**
 * Change the breadcrumb separator
 */
 
add_filter('woocommerce_breadcrumb_defaults', 'cc_change_breadcrumb_delimiter');

function cc_change_breadcrumb_delimiter($defaults) {

// Change the breadcrumb delimiter from '/' to '>'
  $defaults['delimiter'] = ' > ';
  return $defaults;

}
	
   View Raw Code ID: 9974