Skip to:
Content
Pages
Categories
Search
Top
Bottom

Child CSS is overwritten by bbPress default


  • DramaticBaby
    Participant

    @dramaticbaby

    Hi, I’m trying to create a custom theme for the bbPress forum. I already got a child theme based on Twenty Eleven, and I’m trying to style bbPress with my style.css in the child theme folder.

    The problem is that bbpress.css is imported in the html code after my style.css, overwriting the latter’s styling. How do I force bbPress to use style.css instead, even though bbpress.css is imported after?

    I have been struggling with this for hours and hours.

    • This topic was modified 8 years, 4 months ago by DramaticBaby.
Viewing 1 replies (of 1 total)

  • DramaticBaby
    Participant

    @dramaticbaby

    Now I finally got it to work. You just copy the bbpress.css file to /my-child-theme/css/ and voilá, it works. When I found out that I looked in bbpress-functions.php and stumbled over this line:

    // Check child theme
    if ( file_exists( trailingslashit( get_stylesheet_directory() ) . $file ) )

    Which states the obvious, it looks for bbpress.css in the /css/ folder in your child theme. If found, it will replace it with the default css.

    If any admin reads this, can you please elaborate a bit more on the subject. It is very diffuse how all this works.

    • This reply was modified 8 years, 4 months ago by DramaticBaby.
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar