Skip to:
Content
Pages
Categories
Search
Top
Bottom

Can't Format the Lead Topic in CSS


  • readwriteandedit
    Participant

    @readwriteandedit

    I’m trying to format the background and the border for the lead topic, just as you’ve done here in the bbPress forum. I used Firebug to see your code, which is

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

    But when I add this to my child theme’s CSS (where I’ve successfully made other bbPress changes), nothing changes.

    I don’t know if something else I’ve changed is preventing this from changing or maybe if you have something in the setup that I don’t have, something that allows you to style this in CSS when I can’t.

    Any suggestions? The forum is private, but I can get you in temporarily, if that would help. Or I could paste into a comment all the changes to bbPress I made in my CSS.

    (Note: I changed your color for testing purposes)

    Thanks for any help you can give me.

    Beth

Viewing 5 replies - 1 through 5 (of 5 total)

  • Robkk
    Moderator

    @robkk

    try combining the two into this and try it.

    i tested in twenty-fourteen and it worked.

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

    Matthias
    Participant

    @matthias70

    Hm, I’m trying to format the lead topic different different from the replies, but I even can not find ul.bbp-lead-topic im my source code.
    Did I miss something?

    Thanks
    Matthias


    Matthias
    Participant

    @matthias70

    Found the solution.
    You have to add this code to themes function.php to set up lead_topic

    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' );

    TheDream18
    Participant

    @oanhtran1804

    Almost 2 years. This code still work good. Thanks


    nobody
    Participant

    @iduy

    this is what I’ve been looking for, thanks….permitt to copy code.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar