• Hi

    I have problem removing breadcrumbs with remove_action

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

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

    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 .

    anyhelp will be appreciated

    • This topic was modified 9 years, 3 months ago by Milad Jafari.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Milad Jafari

    (@miladjfr)

    cool! nobody wants to help me in this topic ?? where is the wordpress support ?

    Free support is very slow and often limited to community involvement. As with most free things, you get what you’ve paid for.

    I’ve removed breadcrumbs in the past using css, but that will hide it everywhere and you want to move it from one spot to another so CSS isn’t going to work. Unless we use the CSS to target the specific set of breadcrumbs you want to use which is possible. How about a link to your page so we can use DevTools to inspect?

    Storefront support will roll through here every week or two, you will get an official answer at some point.

    So assuming your site now has 2 sets of breadcrumbs, what code did you use to add them in your new desired location?

    You could also try

    add_action( ‘init’, ‘jk_remove_storefront_breadcrumb’ );
    function jk_remove_storefront_breadcrumb() {
    remove_action( ‘storefront_content_top’, ‘woocommerce_breadcrumb’, 99 );
    }
    the 99 on the end defines when the remove action occurs. It could be that your code using 10 is not happening earlier enough in the processing. 99 ensures it runs later.

    I paid for the ‘Pro’ Version. ‘Free Support’? :/

    Hi,

    You are in the free Storefront themes support forum.
    Storefront theme has no “pro version” as far as I know?

    Do you mean you bought the Storefront Powerpack? If so you can send a support ticket. However these customizations are not standard options so not included in support as far as I know.

    If you make changes in functions.php and use a child theme, you will not lose the changes anyway!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Can’t Remove Storefront breadcrumbs’ is closed to new replies.