Tagged: 

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #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?

    #175579
    This reply has been marked as private.
    #175996

    Someone can reply to me please?

    #176329

    Hey someone can reply to me please?

    #176384

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

    #176924

    Hey!

    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/

    Cheers!
    Peter

    #183480
    This reply has been marked as private.
    #183678

    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 );

    #183689

    Hi!

    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,
    Peter

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Problem with Breadcrumbs’ is closed to new replies.