• Resolved pcukseller

    (@pcukseller)


    I have added the following to my functions.php file:
    remove_action( ‘woocommerce_before_main_content’,’woocommerce_breadcrumb’, 20, 0);

    However, this does not remove breadcrumbs from my website (www.sabertoothsystems.co.uk).
    Thanks in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter pcukseller

    (@pcukseller)

    Resolved:

    add_filter( ‘woocommerce_get_breadcrumb’, ‘__return_false’ );

    Hi

    I have the same problem and your solution does not work for me .

    i want to reposition storefront breadcrumbs
    its already hooked in storefront_content_top
    i added this line to my function.php but its not working :

    remove_action( ‘storefront_content_top’, ‘woocommerce_breadcrumb’, 10);

    anybody know why ?

    Milad open a new thread. You want to reposition them, this thread is about removing them.

    Hi Corbett @cenders
    i posted a new thread about this but no ones answer me there .
    i’ve heard wordpress has good support but i can’t feel this .
    this is the link of my thread:
    https://www.ads-software.com/support/topic/cant-remove-storefront-breadcrumbs/

    yes i want to preposition it and i did it , but first its need to remove it from current position and its not working with remove_action .

    finally i removed it by commeting this line on storefront-woocommerce-template-hooks.php :

    add_action( 'storefront_content_top', 'woocommerce_breadcrumb', 10 );

    but its not safe and i will lose this change on theme update .

    add_filter( ‘woocommerce_get_breadcrumb’, ‘__return_false’ );

    This worked for me after numerous other attempted solutions.

    i’ve used this:

    //remove breadcrumbs
    add_filter( 'woocommerce_get_breadcrumb', 'jk_remove_breadcrumb');
      function jk_remove_breadcrumb() {
        return false;
    }
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Remove breadcrumbs from Storefront’ is closed to new replies.