Created
February 19, 2017 05:42
-
-
Save nielslange/be5642df6a37da38fb8add70d5788a1c to your computer and use it in GitHub Desktop.
WooCommerce: Change the breadcrumb separator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//* Change the breadcrumb separator from '/' to '»' | |
add_filter( 'woocommerce_breadcrumb_defaults', 'nl_change_breadcrumb_delimiter' ); | |
function nl_change_breadcrumb_delimiter( $defaults ) { | |
$defaults['delimiter'] = ' » '; | |
return $defaults; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment