- This topic has 3 replies, 3 contibutors, and was last updated 8 years, 7 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Question
Answers
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this question.
BuddyBoss Home – Web › Support Forums › Themes › Boss. theme › Forum description for sub-forums?
Tagged: bbpress
Does anyone know if it’s possible to display the forum description in a sub-forum (i.e. the forum has a parent specified)?
WP 4.4.2
Boss 2.1.6
bbPress 2.5.8
Hi @jschodde, Please add the following function in your child theme’s function.php
function rw_singleforum_description() {
echo '<div class="bbp-forum-content">';
echo bbp_forum_content();
echo '</div>';
}
add_action( 'bbp_template_before_single_forum' , 'rw_singleforum_description');
Regards
This works thanks! Now I just need some way to adjust the margins to match the header somewhat. Maybe 30px left and right. I tried this but nothing happened:
echo '<div class="bbp-forum-content"; padding-left: 30px; padding-right: 30px;>';
Any suggestions?
Thanks!
I gave it a user-defined class and then added some CSS. Seems to work.
.tr-forum-desc-header {
padding:30px;
}