Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Frontend Snippets][Customize the WooCommerce breadcrumb] Change several breadcrumb defaults
/**
* 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' ),
);
}
@Asanka8888

This comment has been minimized.

Copy link

@Asanka8888 Asanka8888 commented Jan 20, 2021

Dear,

Please can you advise how to remove product title from the single product page breadcrumb

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment