Skip to content

Instantly share code, notes, and snippets.

@wbcomdev
Created May 14, 2021 05:21
Show Gist options
  • Select an option

  • Save wbcomdev/6bf716eda680a931c1f84867dedd3eb8 to your computer and use it in GitHub Desktop.

Select an option

Save wbcomdev/6bf716eda680a931c1f84867dedd3eb8 to your computer and use it in GitHub Desktop.
/**
* Remove the breadcrumbs.
*/
function wb_woo_remove_wc_breadcrumbs() {
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20, 0 );
}
add_action( 'init', 'wb_woo_remove_wc_breadcrumbs' );
/**
* Remove breadcrumbs for Storefront theme.
*/
function wb_wc_remove_storefront_breadcrumbs() {
remove_action( 'storefront_before_content', 'woocommerce_breadcrumb', 10 );
}
add_action( 'init', 'wb_wc_remove_storefront_breadcrumbs' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment