Skip to content

Instantly share code, notes, and snippets.

@woogists
Last active December 24, 2018 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save woogists/e4405bd4e32785b6d76eca3b28780811 to your computer and use it in GitHub Desktop.
Save woogists/e4405bd4e32785b6d76eca3b28780811 to your computer and use it in GitHub Desktop.
[Frontend Snippets][Customize the WooCommerce breadcrumb] Change the breadcrumb separator
/**
* Change the breadcrumb separator
*/
add_filter( 'woocommerce_breadcrumb_defaults', 'wcc_change_breadcrumb_delimiter' );
function wcc_change_breadcrumb_delimiter( $defaults ) {
// Change the breadcrumb delimeter from '/' to '>'
$defaults['delimiter'] = ' > ';
return $defaults;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment