• Resolved stepfaul

    (@stepfaul)


    Hi,

    After upgrading to 2.3.1 breadcrumbs are now appearing on my test site. Previously these were turned off using the following:

    //* Removes StoreFront introduced Breadcrumbs
    add_action( 'init', 'z_remove_wc_breadcrumbs');
    
    function z_remove_wc_breadcrumbs() {
        remove_action( 'storefront_content_top', 'woocommerce_breadcrumb', 10);
    }

    I did browse though some Storefront files and could see references to a priority of 20 but changing to this priority had no effect.

    Any assistance would be great.

    Thanks

    Steve.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter stepfaul

    (@stepfaul)

    I had a read through the contents of the file storefront-woocommerce-template-hooks.php stored in the storefront theme folder structure and saw that ‘storefront_before_content’ was being used rather than ‘storefront_content_top’. Have changed the code to read

    /**
     * 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 );
    }

    Now all is working fine and no breadcrumbs

Viewing 1 replies (of 1 total)
  • The topic ‘Breadcrumbs have appeared after upg 2.3.1’ is closed to new replies.