I got a problem with wc breadcrumbs. I need the last one showing as a plain text, not as a link.
After reading docs, there is no simple solution for that:
that's the array with possibilities to change:
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' ),
);
}
Do anyone have any idea, how can I remove the link wrapper for the last item?
Thanks for any advice.