Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #206777

    Hi is it possible to add to breadcrumbs a full path to post type containing taxonomy hierarchy?

    Thanks
    Kind regards
    M

    #206780

    I used also a NavXT breadcrumbs plugin which works perfectly thanks to
    if($breadcrumb) $additions .= bcn_display(true); in functions-enfold.php but it has no classes displayed ;(

    #206959

    Hey!

    Do you want to display the categories of your portfolio items? If yes insert this code into the enfold/functions.php file

    
    add_action('after_setup_theme','avia_remove_portfolio_breadcrumb');
    
    function avia_remove_portfolio_breadcrumb(){
    remove_filter('avia_breadcrumbs_trail','avia_modify_breadcrumb');
    }
    

    – it will remove the portfolio page from the breadcrumb and will show the terms (including hierarchy with parent terms, etc.) instead.

    Best regards,
    Peter

    #206983

    Hi Dude, Thanks.
    No, it’s not a portfolio post type.

    I try to do it with different terms.

    Any ideas?

    • This reply was modified 10 years, 11 months ago by Mariusz.
    #206985

    Maybe there’s a chance just to insert the following code into the grey stripe and swap existing breadcrumbs…

    <div class="breadcrumbs">
        <?php if(function_exists('bcn_display'))
        {
            bcn_display();
        }?>
    </div>
    #207241

    Hey!

    What type of header do you have? You can actually remove the default breadcrumb then add the navXT breadcrumb plugin. Edit header.php, find this code on line 185:

    do_action('ava_after_main_menu');
                            ?>

    Below, add this code:

    <div class="navxt">
                            <?php if(function_exists('bcn_display')) { bcn_display(); }?>
                            </div>

    Add this on your Quick CSS or custom.css:

    .navxt {
    position: absolute;
    right: 0;
    top: 73px;
    }
    
    .breadcrumb.breadcrumbs.avia-breadcrumbs {
    display: none;
    }

    Remove browser cache then reload the page.

    Regards,
    Ismael

    #207311

    Thank you Ismaeal

    I use small fixed header, so your proposal of breadcrumb follows scrolling because is fixed as menu is.

    Any ideas?

    #207319

    Hi!

    You can try to wrap the breadcrumb into a div with the default breadcrumb classes.

    
    if($breadcrumb)
    {
    $additions .= '<div class="breadcrumb breadcrumbs avia-breadcrumbs">';
    $additions .= bcn_display(true);
    $additions .= '</div>';
    }
    

    Cheers!
    Peter

    #207324

    Hi Peter, Thanks but where do you mean to insert the code?
    class-breadcrumb.php ?

    Where exactly?

    Kind regards
    m

    #207399

    Hey!

    No, in functions-enfold.php – use it instead of the code you posted in your first post.

    Regards,
    Peter

    #207415

    It works! thank you very much guys!

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Breadcrumbs with full path terms (taxonomy) for post type’ is closed to new replies.