Skip to content

Instantly share code, notes, and snippets.

@bluedognz
Created July 17, 2018 12:18
Show Gist options
  • Save bluedognz/12b1b44a9d20ab8e7e9f8348f46dfa09 to your computer and use it in GitHub Desktop.
Save bluedognz/12b1b44a9d20ab8e7e9f8348f46dfa09 to your computer and use it in GitHub Desktop.
Enables Yoast Breadcrumbs and Disables Woo Breadcrumbs to avoid duplication in Woo.
/* ENABLES YOAST BREADCRUMBS */
add_action( 'fl_content_open','FLChildTheme::bluedog_add_breadcrumbs', 1 );
/* REMOVES WOO BREADCRUMBS */
add_action( 'init', 'jk_remove_wc_breadcrumbs' );
function jk_remove_wc_breadcrumbs() {
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