Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #15204

    On my site I have included a portfolio where usually a single portfolio item is belonging to several categories. The breadcrumbs for the portfolio items then look like this:

    You are here: Home >> Category A >> Category B >> Category C >> Category X >> Portfolio Item

    Is it possible to change that towards?

    You are here: Home >> Portfolio >> Portfolio Item

    #86620

    Hello,

    Can you give us a link on your website? In my end, the breadcrumbs doesn’t include the portfolio categories unless you clicked the categories themselves or you added the category in the menus.

    Regards,

    Ismael

    #86621

    Sure, but as the site is hidden behind a maintenance plugin, I need to create a user for you. Could I send the login-data to some email address?

    #86622

    *bump*

    Could you give me an email address where I could send the details to?

    #86623

    Hi shutterlag,

    Sorry for the delay in response. Just send me your login details to (Email address hidden if logged out) . Please include this post to your message.

    Regards,

    Ismael

    #86624

    I have spend half a day in testing this issue with a local installation and the Choices dummy data. I can reproduce the issue and I am convinced it is an issue within the Avia framework. It occurs (at least) on three occasions:

    1.) If a child theme is used, it occurs everywhere.

    2.) If a portfolio item is not accessed through a portfolio page, but with the Latest Portfolio widget. The avia framework seems to reconstruct the view history in the breadcrumbs and if the user is not coming via a portfolio page, there is no history, so the breadcrumbs fall back to the categories (which can look quite awful with a large number of categories).

    3.) If the user is coming from a portfolio page, but the portfolio was created with the template builder (like on the page “Homepage with Portfolio” of the dummy data, instead of the portfolio option in the Template Options.

    If possible, I would suggest to address this issue for a future update. It might just be solved, by a second entry field below the portfolio slug. E.g. Slug: project-portfolio; Breadcrumb Slug: Project Portfolio. If entered it can be used as Breadcrumb for all portfolio items views, if left blank the current solution could be used.

    #86625

    Hi shutterlag,

    Thanks for posting your findings. I’m going to tag Kriesi as well as the rest of the support team to read this.

    Regards,

    Mya

    #86626

    Hi,

    I am sorry, is this on the same URL as you name links to or its still in maintenance mode? Please set up a guest in maintenance and send it to usjahm [at] gmail.com.

    But if all you want to do is ensure that only one parent of a portfolio gets listed in the breadcrumbs, please open up framework/php/class-breadcrumbs.php from the theme’s directory and on lines 284-292, replace this:

    if($post_type == 'portfolio')
    {
    $parents = get_the_term_list( $post_id, 'portfolio_entries', '', '$$$', '' );
    $parents = explode('$$$',$parents);
    foreach ($parents as $parent_item)
    {
    if($parent_item) $trail[] = $parent_item;
    }
    }

    with

    if($post_type == 'portfolio')
    {
    $parents = get_the_term_list( $post_id, 'portfolio_entries', '', '$$$', '' );
    $parents = explode('$$$',$parents);
    foreach ($parents as $parent_item)
    {
    if($parent_item) $trail[] = $parent_item;
    break; //stop adding after first parent added to bread crumbs
    }
    }

    Let us know please if this is what you were looking to do.

    Thanks,

    Nick

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Removing categories from breadcrumbs’ is closed to new replies.