Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
It would be nice to clarify through what you display bread crumbs?
If via Yoast Seo Breadcrumbs, then:
https://gist.github.com/amboutwe/ea0791e184668a5c7...
add_filter( 'wpseo_breadcrumb_links', 'wpseo_breadcrumb_add_woo_shop_link' );
function wpseo_breadcrumb_add_woo_shop_link( $links ) {
global $post;
if ( is_woocommerce() ) {
$breadcrumb[] = array(
'url' => get_permalink( woocommerce_get_page_id( 'shop' ) ),
'text' => 'Shop',
);
array_splice( $links, 1, -2, $breadcrumb );
}
return $links;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question