Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove the no-js body class


  • Nahum
    Participant

    @nahummadrid

    What’s the best way to remove the no-js body class?

    function bp_remove_no_js( $bp_nouveau ) {
    
     remove_filter( 'body_class', array( $bp_nouveau, 'add_nojs_body_class' ), 20, 1 );
       
    }
    add_action( 'bp_theme_compat_actions', 'bp_remove_no_js' );

    I was having trouble with bp and owl carousel’s no-js body class.

Viewing 1 replies (of 1 total)
  • No need to try to un-hook where BuddyPress adds it. The body_class filter passes an array of class filters. I’d just filter it, and find and unset the no-js class you don’t want.

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