Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #109202

    Shaun N
    Participant

    Hi, I have a problem where child products categories are not clickable and do not show in the breadcrums hierarchy in the header. I only have a option to go back to the shop page irrespective how far down a parent/child hierarchy I am. It sort of defies the point of having breadcrums if it doesn’t give the customer a option to follow his/her tracks through the site and clicable links to previous pages they visited.

    #109337

    Rad
    Moderator

    Hi Shaun,

    Thanks for posting in.

    X uses a very basic breadcrumbs depending on current hierarchy. Given that there will be more plugins that will be using custom post types, there is no way for X to automatically detect those hierarchy. Just like woocommerce plugin.

    Though, you can always use your own breadcrumb/advance breadcrumb plugin to replace X built-in one. You can do that by adding this code at your child theme’s functions.php

    if ( ! function_exists( 'x_breadcrumbs' ) ) :
      function x_breadcrumbs() {
    
        if ( x_get_option( 'x_breadcrumb_display', 1 ) && function_exists('yoast_breadcrumb') ) {
              yoast_breadcrumb('<p id="breadcrumbs">','</p>');
        } 
    
      }
    endif;

    yoast_breadcrumb('<p id="breadcrumbs">','</p>'); is breadcrumb feature of SEO Yoast plugin, where you can manually control your pages breadcrumbs.

    Cheers!

    #109486

    Lampros F
    Participant

    Hi!

    I have the same problem.

    Could you please be a little more detailed regarding the SEO Yoast plugin and breadcrumbs integration for X theme ?

    I use the integrity stack in a blank new child theme.
    I activated the X Theme breadcrumbs.
    I installed and activated the SEO Yoast plugin.
    I enabled and customized the breadcrumbs settings in internal link – Yoast WordPress SEO.
    However I tried to put the above php code in various files, with no success. Could you be please more specific in which file should I place the above code ??
    Thank you!

    #109524

    Christopher
    Moderator

    Hi there,

    Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    After setting up the child theme you can put the suggested code in: YOUR CHILD THEME -> function.php file

    Hope it helps.

    #109536

    Shaun N
    Participant

    Hi, I tried the above code, but the breadcrums disappears all together if i implement it

    #109555

    Paul R
    Moderator

    Hi Shaun,

    In that case, would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password
    – FTP credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    #109586

    Lampros F
    Participant

    It worked for me! Thanks!
    You just have to add the lines to the new functions.php that the child theme has!
    I was copying the whole functions.php file from the main X theme and adding the new lines.

    Thank you for all the support!

    #109597

    Paul R
    Moderator

    You’re welcome. Glad it worked. 🙂

    #115999

    John H
    Participant

    The code works for me too :), One question: could I use . $home_text & . $delimiter with yoast_breadcrumb ?

    Thanks 😀

    #116182

    Paul R
    Moderator

    Hi John,

    I am sorry, I am not exactly sure what you are trying to accomplish.
    Can you please explain further regarding the code.

    Thanks

    #116262

    John H
    Participant

    Hey, I was wondering if I can have this as home link on breadcrumbs: http://prntscr.com/4s1589

    Thanks

    #116272

    Kosher K
    Member

    Hi There,

    Would you mind providing the URL of your site? That should supposed to be the home link.

    You can see it here,

    http://theme.co/x/demo/integrity/1/blog/
    http://theme.co/x/demo/icon/1/blog/
    http://theme.co/x/demo/renew/1/blog/
    http://theme.co/x/demo/ethos/1/activity/

    Cheers

    #116299

    John H
    Participant
    This reply has been marked as private.
    #116335

    Paul R
    Moderator

    Hi John,

    Thanks for the url

    The home icon should be the default home link on breadcrumbs.

    It seems you are using seo yoast for breadcrumbs.

    Regretfully, this particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or look to a service such as WerkPress or Elto for assistance should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.

    Thank you for your understanding.