Quantcast
Channel: bbPress.org » All Posts
Viewing all articles
Browse latest Browse all 3638

Reply To: Help with functions.php mod for bbPress

$
0
0

Ok, thanks and yes we can fix that.

1. the code is missing ‘);’ by mistake, it should read

function mycustom_breadcrumb_options() {
    // Home - default = true
    $args['include_home']    = false;
    // Forum root - default = true
    $args['include_root']    = false;
    // Current - default = true
    $args['include_current'] = true;
 
    return $args;
}
 
add_filter('bbp_before_get_breadcrumb_parse_args', 'mycustom_breadcrumb_options');

The extra ‘);’ is right at the end

I’ve fixed the documentation

2. as stated in http://codex.bbpress.org/functions-files-and-child-themes-explained/

you should not be adding code to the end of a main theme’s functions, but should be creating child theme. By all means leave it there and test that it works, but then create a child theme and move it there or you risk losing the change on an update. I’ll try and make this even clearer in the documentation – it is a first version !

Hope that helps you, and please come back with any further issues ! :-)


Viewing all articles
Browse latest Browse all 3638

Trending Articles