Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove default css

  • @koendb

    Participant

    Hi, I want to disable the default bbpress .css file. I searched through the forums and found several solutions, but none seem to work.

    I used to deregister bbp-default-bbpress with the code below, but that doesn’t work anymore after the WP 3.8 upgrade.

    add_action( 'wp_print_styles', 'deregister_bbpress_styles', 15 );
    function deregister_bbpress_styles() {
     wp_deregister_style( 'bbp-default-bbpress' );
    }

    WP 3.8
    bbpress 2.5.1

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • @lynqoid

    Participant

    An easy way would be to follow this: https://codex.bbpress.org/theme-compatibility/

    Then empty the bbPress CSS file, you can then use a caching plugin to mash css files together and limit requests so the extra file being requested wouldn’t hurt too much.

    @netweb

    Keymaster

    The following should work, a few CSS & JavaScript changes came with bbPress 2.5 😉

    add_action( 'wp_print_styles', 'deregister_bbpress_styles', 15 );
    function deregister_bbpress_styles() {
     wp_deregister_style( 'bbp-default' );
    }

    @koendb

    Participant

    Thanks a lot!

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