Okay
  Public Ticket #2124177
Breadcrumb
Closed

Comments

  • buenosdias started the conversation

    Hello,

    I'm setting up a woocommerce, and I can't find a way to show breadcrumb. I think it must be ON by default...

    I can't find "breadcrumb" in the theme options, and I find this answer https://laborator.ticksy.com//ticket/1706861/ and tried the code (see the attachements), but it works half way. With the code, a breadcrumb appears in the archives pages but not in the single product page. And I'd like that the breadcrumb show the path Accueil / shop / boissons (uniquement à Genève) but not Accueil / boissons (uniquement à Genève).  

    I'm still in the stage of localhost so I can't give the URL... If you must it, I'll upload the theme for a live test.

    Thank you.

  • [deleted] replied

    Hi buenosdias,

    We have removed breadcrumbs from our theme, however if you want to show breadcrumbs (for WooCommerce pages) you can add this code:

    add_action( 'init', function() {
        add_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 );
    } );
    Can you please try this code, so it will enable breadcrumbs in shop pages where applied by Woocommerce by default.