The following snippet will let you deregister all in one event calendar in WordPress.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | // clean up unwanted JS scripts function my_print_scripts(){ if ( !is_admin() ) { wp_deregister_script('jquery'); wp_deregister_script('ai1ec_requirejs'); } } add_action('wp_print_scripts', 'my_print_scripts'); // clean up unwanted CSS function my_print_css() { if ( !is_admin() ) { wp_deregister_style('ai1ec-general'); wp_deregister_style('ai1ec-event'); wp_deregister_style('ai1ec-calendar'); } } add_action('wp_print_styles', 'my_print_css'); |
Snippet Source/Credit: Ditscheri.com