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

closed as off-topic by Nathan Johnson, Michael, Krzysiek Dróżdż, fuxia Apr 23 '18 at 14:39

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.


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 );

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