I have bought a theme, but on a particular page i don't want to use the theme js/css files.
The theme registers the files like
function add_our_scripts() {
global $post;
$options = get_option('radium_theme');
wp_enqueue_style( 'radium', RADIUM_CSS_URL . '/radium.css', false,'1.0','all'); //the framework stylesheet
wp_enqueue_style( 'main-style', get_stylesheet_uri(), false,'1.0','all'); //the main stylesheet
wp_enqueue_style('sliders', RADIUM_CSS_URL . '/sliders.css',false,'1.0','all'); //sliders
wp_enqueue_style etc
and add_action call
add_action( 'wp_enqueue_scripts', 'add_our_scripts',0);
full js http://jsfiddle.net/wesweatyoushop/FQrKp/
I created the following remove function
function remove_radium_scripts() {
echo 'Test check';
wp_dequeue_style('radium');
//wp_dequeue_style( array('radiumshortcodes','sliders','radium') );
//wp_deregister_style( array('radiumshortcodes','sliders','radium') );
}
add_action( 'test_remove_scripts', 'remove_radium_scripts', 999 );
And in the header of the specific page i added
do_action('test_remove_scripts');
I can see the Test check but the radium.css is still there
How can i fix this
add_action()
call into whichadd_our_scripts()
is hooked?add_action( 'wp_enqueue_scripts', 'add_our_scripts',0);
and i already triedwp_dequeue_script('radium');