0

I want to remove woocommerce_breadcrumb from do_action( 'woocommerce_before_main_content' ) in WordPress. How can I do that?

1 Answer 1

3

The action is added at L47 of wc-template-hooks.php. So just remove action at the same priority.

Add this to your child theme functions.php file or as a separate plugin.

remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 );
0

Not the answer you're looking for? Browse other questions tagged or ask your own question.