Hello Summer Sale!
Exclusive season-opening discount on TheGem theme.
Limited time offer.

Okay
  Public Ticket #1225393
Modify breadcrumb - Add cat and sub cat
Closed

Comments

  • BaptisteJesu started the conversation

    Hi,

    I'd like to add the categories and sub-categories to the theme breadcrumb on woocommerce product pages.

    Do I need to change the code ? If so, I haven't found which file is dealing with the breadcrumb, could you help me ?

    Thanks

    Baptiste

  •  7,280
    Oliver replied

    HI!

    You need to edit:

    function gem_breadcrumbs() 

    /wp-content/themes/thegem/functions.php

    Line 1804

    Or If you wish you can use Youast breadcrumbs:

    You need to change line 921 - 925 in the functions.php  

     if ( !function_exists( 'yoast_breadcrumb' ) ) {      
    require_once '/inc/wpseo-functions.php';  }  $breadcrumbs = '<div class="breadcrumbs-container"><div class="container">'.

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • BaptisteJesu replied

    Thank you Gregor !

    I used yoast breadcrumb and it works fine.

    Also, can I add it in my child theme functions.php to avoid this part to be overwritten by updates ? 

    I tried but I can't duplicate the thegem_page_title function. in my child theme file.  

    Thanks !

    Baptiste


  •  7,280
    Oliver replied

    Sorry, I don't see a simple way to do this...

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver