Skip to:
Content
Pages
Categories
Search
Top
Bottom

Change background color of 1st post


  • Divvy
    Participant

    @divvy

    Hello guys,

    How can I make the 1st post of each topic (author post) to have a different background color? Exactly like we can found here in official bbpress support forum.

    Thanks in advance 🙂

Viewing 1 replies (of 1 total)

  • kdelsimone
    Participant

    @kdelsimone

    Try adding this to your custom css:

    #bbpress-forums ul.bbp-lead-topic li.bbp-body div.topic {
    background-color: #ffe;
    border: 1px solid #dd6;
    }

    and this to your functions.php:

    function custom_bbp_show_lead_topic( $show_lead ) {
      $show_lead[] = 'true';
      return $show_lead;
    }
    
    add_filter('bbp_show_lead_topic', 'custom_bbp_show_lead_topic' );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar