Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[Frontend Snippets][Customize the WooCommerce breadcrumb] Remove breadcrumbs for Storefront theme
/**
* Remove breadcrumbs for Storefront theme
*/
add_action( 'init', 'wc_remove_storefront_breadcrumbs');
function wc_remove_storefront_breadcrumbs() {
remove_action( 'storefront_before_content', 'woocommerce_breadcrumb', 10 );
}
@BusinessBloomer

This comment has been minimized.

Copy link

@BusinessBloomer BusinessBloomer commented Mar 16, 2018

This won't work anymore. Please use the following:

add_action( 'init', 'bbloomer_remove_storefront_breadcrumbs');

function bbloomer_remove_storefront_breadcrumbs() {
  remove_action( 'storefront_content_top', 'woocommerce_breadcrumb', 10 );
}
@woogists

This comment has been minimized.

Copy link
Owner Author

@woogists woogists commented Apr 25, 2018

Thanks, @BusinessBloomer!

@backtofront

This comment has been minimized.

Copy link

@backtofront backtofront commented May 9, 2018

As of WP 4.95 / WC 3.3.5 / Storefront 2.3.0 this no longer works, including the @BusinessBloomer fix.

@woogists

This comment has been minimized.

Copy link
Owner Author

@woogists woogists commented May 11, 2018

Hi, @bactofront!

You are correct — use storefront_before_content

Updated!

@Franz333

This comment has been minimized.

Copy link

@Franz333 Franz333 commented Sep 19, 2018

What is wrong with that breadcrumb?

Removing it is ok but as long as we want to remove it on specific pages, it won't work..

Anyone knows how to handle it ?

@jozeflambrecht

This comment has been minimized.

Copy link

@jozeflambrecht jozeflambrecht commented Oct 1, 2020

How can I add the breadcrumbs to the home page? (disabled by default)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.