Skip to:
Content
Pages
Categories
Search
Top
Bottom

How can I Dequeue Bbpress Stylesheet

Viewing 6 replies - 1 through 6 (of 6 total)

  • Robin W
    Moderator

    @robin-w

    wp_dequeue_script ('bbp-default') ;

    should do it


    Robin W
    Moderator

    @robin-w

    might be better as this to ensure it fires after bbpress has loaded

    add_action ('plugins_loaded' , 'rew_dequeue_bbpress_css' ) ;
    
    function rew_dequeue_bbpress_css () {
    	wp_dequeue_script ('bbp-default') ;
    }

    kikismedia
    Participant

    @kikismedia

    After adding it to my function nothing change the css is still instact


    Robin W
    Moderator

    @robin-w

    this works on my test site

    add_filter( 'bbp_default_styles', 'rew_dequeue_bbpress_css' ) ;
    
    function rew_dequeue_bbpress_css ($defaults ){
    unset ($defaults['bbp-default']) ;
    return $defaults ;
    }

    kikismedia
    Participant

    @kikismedia

    Thanks that’s worked


    Robin W
    Moderator

    @robin-w

    great – glad you are fixed

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