The forums list display comes under the template
wp-content/plugins/bbpress/templates/default/bbpress/loop-single-forum.php
There are many hooks in this
Line 44 does the sub forum display
I found this solution :
add_action( 'bbp_template_before_single_forum' , 'xxxx_bbp_display_forum_description' );
function xxxx_bbp_display_forum_description() {
echo '<div>';
bbp_forum_content();
echo '</div>';
}
Maybe better like this :
add_action( 'bbp_template_before_single_forum' , 'xxxx_bbp_display_forum_description' );
function xxxx_bbp_display_forum_description() {
$display_forum_description = bbp_get_forum_content();
if ( bbp_is_single_forum() && ! empty( $display_forum_description ) ) {
echo '<div class="bbp-display-forum-description">';
echo $display_forum_description;
echo '</div>';
}
}
looks good, have you tried it and does it work,
If so I’ll add it to the codex
Yep, works perfectly 🙂
Thanks, I’ve slightly amended it to get it to display on all pages and added it to the documentation
Layout and functionality – Examples you can use
Thanks again for posting your solution !
Gilles, can’t thank you enough. Just what I was looking for. Works beautifully.
Rob