Skip to:
Content
Pages
Categories
Search
Top
Bottom

Styling forums in bbpress plugin

  • @leemon

    Member

    Hi!

    I installed the new bbpress plugin and I’d like to style the forum pages using CSS. I use a three column theme and I managed to remove the sidebar in the forum pages through the WP theme functions.php file, but I don’t know how to enlarge the content area just in these pages since the body class attribute doesn’t specify that these are forum pages, so I cannot do something like this:

    .forums .entry-content {

    width: 100%;

    }

    Any help would be appreciated!

    Thanks in advance

Viewing 9 replies - 1 through 9 (of 9 total)
  • @mark-barnes

    Member

    Depending on your theme you should be able to add a filter to ‘body_class’.

    <edit>Actually, you shouldn’t need to. bbPress already adds to the body class.</edit>

    @leemon

    Member

    Are you sure? I can’t see bbPress added to the body class here:

    http://barcelonaphotobloggers.org/forums/forum/general-2/

    @leemon

    Member

    I’ve resolved it. Apparently, the WP theme I’m using (Thematic) has a constant named THEMATIC_COMPATIBLE_BODY_CLASS defined as TRUE. I disabled it and now I can see “bbPress” added to the body class in all forum pages.

    @johnjamesjacoby

    Keymaster

    Good info. Thanks for sharing that. I imagine there will be other framework style themes that do some custom hijacking like that too.

    @giupersu

    Member

    Hallo, I’d like use a custum page template without sidebar, but BB Press always uses the default one for each sub-pages, how should I do? Thanks in advance.

    @fartlek

    Member

    @giupersu

    Member

    Fartlek, thank you but is not a problem of widgets. I’m using Twenty Ten I can manage my forum index without sidebar using a custom template but only for the parent page. Each sub-page is using the default template provided by twentyten with his sidebar.

    @giupersu

    Member

    @Fartlek: ok, I’m sorry, you were right. Resolved with the Widget Logic plugin :)

    Thank you.

    @caming

    Participant

    i’d like to add to this if possible, as i think i’m encountering the same problem as leemon. if my custom theme is doing a bit’o hijacking with the css, where would i find and disable this body class code?

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