BuddyBoss Home – Web Support Forums Themes Boss. theme Forum description for sub-forums?

Tagged: 

  • This topic has 3 replies, 3 contibutors, and was last updated 8 years ago by Jeff.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Question

    #67435
    @jschodde

    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

    Answers

    #67460

    Anonymous
    @

    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

    #69045
    @jeffschoddegmail

    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!

    #69054
    @jeffschoddegmail

    I gave it a user-defined class and then added some CSS. Seems to work.

    .tr-forum-desc-header {
        padding:30px;
    } 
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this question.