Skip to content

Instantly share code, notes, and snippets.

@nielslange
Created February 19, 2017 05:42
Show Gist options
  • Save nielslange/be5642df6a37da38fb8add70d5788a1c to your computer and use it in GitHub Desktop.
Save nielslange/be5642df6a37da38fb8add70d5788a1c to your computer and use it in GitHub Desktop.
WooCommerce: Change the breadcrumb separator
<?php
//* Change the breadcrumb separator from '/' to '»'
add_filter( 'woocommerce_breadcrumb_defaults', 'nl_change_breadcrumb_delimiter' );
function nl_change_breadcrumb_delimiter( $defaults ) {
$defaults['delimiter'] = ' &raquo; ';
return $defaults;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment