Last active
January 20, 2021 20:43
-
-
Save woogists/1bff7c2233a733b573c8f272b5e66bd3 to your computer and use it in GitHub Desktop.
[Frontend Snippets][Customize the WooCommerce breadcrumb] Change several breadcrumb defaults
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
/** | |
* Change several of the breadcrumb defaults | |
*/ | |
add_filter( 'woocommerce_breadcrumb_defaults', 'jk_woocommerce_breadcrumbs' ); | |
function jk_woocommerce_breadcrumbs() { | |
return array( | |
'delimiter' => ' / ', | |
'wrap_before' => '<nav class="woocommerce-breadcrumb" itemprop="breadcrumb">', | |
'wrap_after' => '</nav>', | |
'before' => '', | |
'after' => '', | |
'home' => _x( 'Home', 'breadcrumb', 'woocommerce' ), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dear,
Please can you advise how to remove product title from the single product page breadcrumb
thanks