Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • #175573

    Hi guys, i have a problem with breadcrumbs: this one is a porfolio item http://www.thelayout.it/portfolio/siccom-forniture, and if you try the link you can see in bc “Sei qui:Home / Siti internet Sassari | Siti web Sassari / Siccom Forniture”.
    Siti internet Sassari | Siti web Sassari is a page that have no links with the portfolio item. There is the same problem with the others portfolio items. The corret breadcrumb is: Sei qui:Home / Portfolio/ Siccom Forniture”.
    Can you help me please?

    This reply has been marked as private.

    Someone can reply to me please?


    Hey someone can reply to me please?


    The problem is here, http://www.thelayout.it/portfolio_entries/web. With this category of portfolio items breadcrumbs are not correct



    Maybe you used the ” Siti internet Sassari | Siti web Sassari” page as portfolio grid page in the past? Then the wrong breadcrumb was caused by a technical limitation. WordPress doesn’t know which “portfolio grid” is the parent page of a “single portfolio entry” because the portfolio grid is actually just a shortcode which is embedded into the content. Kriesi found a workaround and Enfold stores the id of the portfolio/grid page into a session. If the session data exists the breadcrumb will show the portfolio grid link in the breadcrumb, otherwise not. So if the user first views the grid page the server will save the id into the session and as soon as the user views the single portfolio entry Enfold uses the session data to build the breadcrumb. On the other hand (if the user accesses the portfolio entry directly) it won’t save a session/id and the breadcrumb won’t show the portfolio grid page link.

    I tested the portfolio page on your website and the breadcrumb seems to work for me now: http://www.screenr.com/iDtH . Maybe try to clear the browser cache and visit it again to get rid of the old session data.

    If you want to show the portfolio grid page in the breadcrumb but just the portfolio categories of the current entry you can use the code I posted here https://kriesi.at/support/topic/breadcrumbs-with-portfolio/


    This reply has been marked as private.

    In the file wp-content/themes/enfold/framework/phpclass-breadcrumbs.php on the line 440 if i comment, the problem is solved, but every upgrade there is the problem

    /* Allow child themes/plugins to filter the trail array. */
    //$trail = apply_filters( ‘avia_breadcrumbs_trail’, $trail, $args );



    But the code I posted here: https://kriesi.at/support/topic/breadcrumbs-with-portfolio/ does exactly the same because it removes the filter function which manipulates the breadcrumb trail with

    $trail = apply_filters( ‘avia_breadcrumbs_trail’, $trail, $args );

    So your code

    //$trail = apply_filters( ‘avia_breadcrumbs_trail’, $trail, $args );

    or my function here https://kriesi.at/support/topic/breadcrumbs-with-portfolio/ should give you the same result but the filter function can be used in a child theme file and you don’t need to hack the core theme files.

    Best regards,

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

The topic ‘Problem with Breadcrumbs’ is closed to new replies.