Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: wp_enqueue_script issue on activity page

@henrywright

Moderator

@albert101

If you copy and paste this into your theme’s functions.php file, it should work.

function my_dequeue_script() {
    if ( bp_is_activity() )
        wp_dequeue_script( 'xyz-custom-script' );
}
add_action( 'wp_print_scripts', 'my_dequeue_script', 100 );

Your functions.php file will be located at: /wp-content/themes/your-theme/functions.php

Skip to toolbar