Tagged: breadcrumbs
-
AuthorPosts
-
October 15, 2013 at 11:43 am #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?October 15, 2013 at 11:50 am #175579This reply has been marked as private.October 15, 2013 at 7:37 pm #175996Someone can reply to me please?
October 16, 2013 at 10:12 am #176329Hey someone can reply to me please?
October 16, 2013 at 12:50 pm #176384The problem is here, http://www.thelayout.it/portfolio_entries/web. With this category of portfolio items breadcrumbs are not correct
October 17, 2013 at 10:10 am #176924Hey!
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!
PeterNovember 1, 2013 at 7:48 pm #183480This reply has been marked as private.November 2, 2013 at 11:20 am #183678In 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 );November 2, 2013 at 12:32 pm #183689Hi!
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 -
AuthorPosts
- The topic ‘Problem with Breadcrumbs’ is closed to new replies.