Reply To: current in forum root
ok i havent really messed with breadcrumbs that much i usually remove them but there suppose to show home > forums > forums i think from what i just tested on my localhost.
since it shows the root anyway if you are already on the forum archive.
but i did end up removing one of the forums link this weird way
ok i dont know for sure what i did because i was basically just fiddling around so here are all of what i did
i had this in my functions php in my own thematic child theme.
function mycustom_breadcrumb_options() {
// Home - default = true
$args['include_home'] = false;
// Forum root - default = true
$args['include_root'] = true;
// Current - default = true
$args['include_current'] = true;
return $args;
}
add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options');
add_filter( 'bbp_get_breadcrumb', 'change_breadcrumb_text' );
Function change_breadcrumb_text ($trail) {
$trail = str_replace ('No Labels Community Forum','N L C F',$trail) ;
return $trail ;
}
then i removed the add_filter line for the mycustom_breadcrumb function
so i have this now.
function mycustom_breadcrumb_options() {
// Home - default = true
$args['include_home'] = false;
// Forum root - default = true
$args['include_root'] = true;
// Current - default = true
$args['include_current'] = true;
return $args;
}
add_filter( 'bbp_get_breadcrumb', 'change_breadcrumb_text' );
Function change_breadcrumb_text ($trail) {
$trail = str_replace ('No Labels Community Forum','N L C F',$trail) ;
return $trail ;
}
this removed one of the NLCF links in the breadcrumbs.
i even removed the my custom breadcrumbs function and its still only shows one NLCF link…
its weird :/