• I want to remove the breadcrumbs from all pages because there is a big gap between it and the start of the content.

    I am using a child theme of Storefront and Powerpack and I homed in on the breadcrumbs section with the designer, but I can’t reduce the space above/below as much as a I want.

    I looked for the action to remove the breadcrumbs and I added the code from the WooCommerce Docs page to the functions file but it has not removed the breadcrumbs.

    Before I go looking for conflicts, is the code ‘Remove Breadcrumbs’ and ‘Using a Wootheme’ up to date?

    Thanks,
    David

Viewing 2 replies - 1 through 2 (of 2 total)
  • You should be able to do this in Powerpack. If not, you can remove the breadcrumbs on pages with something like;

    add_action( 'init', 'jk_remove_breadcrumbs' );
    function jk_remove_breadcrumbs() {
    if ( is_page() ) {
    remove_action( 'storefront_content_top', 'woocommerce_breadcrumb', 10 );
    }

    That would remove the breadcrumb from your cart / checkout / my account pages as well though.

    I add this to my custom functions plug-in and get an error message:

    Sorry, but your code causes a “Fatal error”, so it is not applied!
    Please, check the code and try again.

    Any idea as to why? What can I do to get rid of these breadcrumbs?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove breadcrumbs from pages’ is closed to new replies.