Remove WooCommerce breadcrumb from ONE page (shop)
-
Hi,
I’m trying to remove the breadcrumbs from just the ‘shop’ page on my website. I’ve seen solutions for removing this from the home page but my shop isn’t on the home page. I have changed the ‘home’ link to ‘shop’ so customers can navigate back to the shop when viewing a product.
I have tried:
add_action('template_redirect', 'remove_shop_breadcrumbs' ); function remove_shop_breadcrumbs(){ if (is_page('Shop')) { remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0); } }
But no joy. This is almost the same code people are using to remove breadcrumbs from the home page so I’m not sure what I’m doing wrong here.
Any insight would be great!
Website: https://vanquish-ips.com/shop/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Remove WooCommerce breadcrumb from ONE page (shop)’ is closed to new replies.