Skip to:
Content
Pages
Categories
Search
Top
Bottom

Deregister buddypress.min.css in the child theme


  • m1000
    Participant

    @m1000

    Hello,

    I would like to deregister buddypress.min.css. I used following code in functions.php of child theme

    add_action( 'wp_enqueue_scripts', 'remove_default_stylesheet', 20 );
    
    function remove_default_stylesheet() {
        
        wp_dequeue_style( 'bp-nouveau-css' );
        wp_deregister_style( 'bp-nouveau-css' );
    }

    but it’s not working. I know it’s possible with bp-custom.php but I don’t want to touch the plugins directory so how to do it with functions.php in child theme?

  • You must be logged in to reply to this topic.
Skip to toolbar