Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1029474
    Reanna
    Participant

    Hi there Themeco,

    I am wanting to add a border to the body of my bbpress forums as shown by the red bar in this screen shot:
    http://grouptherapyoc.com/forums/forum/sub-forums/
    forums

    As you can see I added this code to the sidebar which made it’s body white and added a border.

    .x-sidebar {
    background-color: white;
    }
    
    body.bbpress,
    body.bbpress .site {
      background-color: #373737;
    }
    
    body.buddypress,
    body.buddypress .site {
      background-color: #373737;
    }
    
    .x-sidebar{
    padding-left: 15px;
    border-left: 2px solid #eaeaea;
    padding-right: 15px;
    border-right: 2px solid #eaeaea;
    padding-top: 15px;
    border-top: 2px solid #eaeaea;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;  
    }

    I would like to replicate this with the body of bbpress, due to the fact that the current background colour is seeping through. So to be specific how can I make the body of bbpress (within the red border shown above) white and add a border relative to where the red is provided on my screen shot?

    Thanks in advance for any assistance!
    Reanna

    #1029746
    Christopher
    Moderator

    Hi there,

    Please add this :

    body.forum.bbpress .x-main {
        border: 2px solid #eaeaea;
        background-color: #fff;
        padding: 10px;
    }

    Hope it helps.

    #1029780
    Reanna
    Participant

    Hi Christopher,

    That code has indeed affected the sub-forum page as shown here:
    Workedhere

    Unfortunately the threads and replies posted within the forums are still how they were earlier, like so:
    notworking

    Any chance I could get a code for that as well?

    Thanks,
    Reanna

    #1030079
    Rupok
    Member

    Hi Reanna,

    Thanks for updating. Sorry but I am bit confused now. Would you clarify a bit that where you exactly want the borders and where shouldn’t?

    Cheers!

    #1031315
    Reanna
    Participant

    Hi again,

    The code Christopher provided works, but only on the sub forum page. I would like the same border and background to work on posts like this page for example: posts

    As you can see it’s not currently working on the posts, the red lines display where I want the border. Then I would like that area filled in white so the grey background no longer seeps through.

    I’m hope this is clearer, sorry for any confusion.
    Reanna

    #1031878
    Christopher
    Moderator

    Hi there,

    Please provide us with exact URL of page in question.
    In case we need to login to access the page, please provide us with login credentials.

    Thanks.

    #1033477
    Reanna
    Participant

    EDIT: Managed to figure it out myself.
    This code got the result I wanted:

    body.topic.bbpress .x-main {
        border: 2px solid #eaeaea;
        background-color: #fff;
        padding: 10px;
    }
    

    You can close this topic now, thanks.
    Reanna

    #1033499
    Paul R
    Moderator

    You’re welcome and thanks for sharing the code.

  • <script> jQuery(function($){ $("#no-reply-1029474 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>