Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save omurphy27/5494157a518952f6127c to your computer and use it in GitHub Desktop.
Save omurphy27/5494157a518952f6127c to your computer and use it in GitHub Desktop.
woocommerce - wordpress - remove breadcrumbs only from the main front shop page.php
// woocommerce - remove breadcrumbs only from the main front shop page
add_action( 'woocommerce_before_main_content', 'jk_remove_wc_breadcrumbs' );
function jk_remove_wc_breadcrumbs() {
if (is_shop()) {
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment