Skip to content

Instantly share code, notes, and snippets.

@woogists
Last active May 11, 2018 09:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save woogists/459bb25c25048795ed59e11451730b64 to your computer and use it in GitHub Desktop.
Save woogists/459bb25c25048795ed59e11451730b64 to your computer and use it in GitHub Desktop.
[Frontend Snippets][Customize the WooCommerce breadcrumb] Remove breadcrumbs on WooCommerce pages (Woo developed themes)
/**
* Remove breadcrumbs on specific pages
*/
add_action( 'init', 'wcc_remove_woo_wc_breadcrumbs' );
function wcc_remove_woo_wc_breadcrumbs() {
if ( is_woocommerce() || is_cart() || is_checkout() ) {
remove_action( 'woo_main_before', 'woo_display_breadcrumbs', 10 );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment