Adding product brand into breadcrumb
Im wanting to display the parent brand of a product in the breadcrumb on the single product page. Something like:
<?php
$args = array(
'delimiter' => ' / ',
'home' => _x( 'Shop', 'brand', 'breadcrumb', 'woocommerce' )
);
add_filter( 'woocommerce_breadcrumb_home_url', 'woo_custom_breadrumb_home_url' );
function woo_custom_breadrumb_home_url() {
return '';
}
?>
<?php woocommerce_breadcrumb( $args ); ?>
Comments