Skip to:
Content
Pages
Categories
Search
Top
Bottom

bbPress Shortcode

  • @acs-yt

    Participant

    Hi,

    I was not able to find a shortcode like [bbPress_forum] to add a forum on a page. Is there a code available?

Viewing 17 replies - 1 through 17 (of 17 total)
  • @robin-w

    Moderator

    @acs-yt

    Participant

    Thank you very much! But another question: Is it possible to deactivate the sidebar on the forum?

    @robkk

    Moderator

    You would need to follow this and create a bbpress.php file and then come back and I will help you with some CSS that you might need.

    Getting Started in Modifying the Main bbPress Template

    @acs-yt

    Participant

    I just tried Widget Logic and it worked mostly good. I added is_single() && in_category (‘forums’) in every widget, so all widgets were hidden. But a new widget appeard: Archive. I didn’t even activated this one…

    @acs-yt

    Participant

    Edit: restrict widgets removed the widgets succesfully, but the forum is still not Full-witdh

    @robkk

    Moderator

    @acs-yt

    Post a link to your site and I will help you fix the rest.

    @acs-yt

    Participant

    @robkk

    Moderator

    @acs-yt

    Try this custom CSS to see if it would help make your forums full width.

    @media and (min-width: 992px) {
     .bbpress .col-md-8 {
        width: 100%;
     }
    }

    Use this to completely remove the sidebar with CSS.

    @media and (min-width: 992px) {
    .bbpress .col-md-4 {
         width: 0;
         display: none;
     }
    }

    @acs-yt

    Participant

    I’m sorry to ask, but as I’m very new to css & php, I really don’t know, where to paste this code.

    But nevertheless, thanks for the code.

    @robin-w

    Moderator

    @robkk

    Moderator

    What I posted is just some custom CSS.

    Paste custom CSS in any of the following for it to work.

    Child themes stylesheet
    custom css plugin
    bbpress stylesheet in a css folder in child theme

    @acs-yt

    Participant

    Thanks for your answer!

    But unfortunatelly, it didn’t work.

    @robkk

    Moderator

    Where did you put the CSS?? Did you add !important to the end like this??

    width: 100% !important;

    @acs-yt

    Participant

    I added them into the “Simple Custom CSS” plugin, downloaded from wordpress.org.

    At the end, it looked like:

    @media and (min-width: 992px) {
     .bbpress .col-md-8 {
        width: 100% !important;
     }
    }
    

    and

    @media and (min-width: 992px) {
     .bbpress .col-md-8 {
        width: 100% !important;
     }
    }

    It is still not Full-Width 🙁

    @robkk

    Moderator

    It should be this

    @media and (min-width: 992px) {
     .bbpress .col-md-8 {
        width: 100% !important;
     }
    
     .bbpress .col-md-4 {
        width: 0 !important;
        display: none !important;
     }
    }

    You can also try it without the media queries.

    .bbpress .col-md-8 {
        width: 100% !important;
     }
    
     .bbpress .col-md-4 {
        width: 0 !important;
        display: none !important;
     }

    @acs-yt

    Participant

    OMG, it’s Full Width! This code resolved the problem:

    .bbpress .col-md-8 {
        width: 100% !important;
     }
    
     .bbpress .col-md-4 {
        width: 0 !important;
        display: none !important;
     }

    Thank you for helping me!

    @robkk

    Moderator

    @acs-yt

    no problem 🙂

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