Created
March 13, 2012 03:46
-
-
Save jo-snips/2026611 to your computer and use it in GitHub Desktop.
The Events Calendar: Deregister/Register Scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('wp_enqueue_scripts', 'example_enqueue_scripts'); | |
function example_enqueue_scripts() { | |
wp_dequeue_script('tribe-events-calendar-script'); | |
} | |
add_action('wp_footer', 'custom_events_script'); | |
function custom_events_script() { | |
wp_register_script('tribe-custom-calendar-script', get_bloginfo('stylesheet_directory') .'/events/events.js', array('jquery'), '1.0', true); // see http://codex.wordpress.org/Function_Reference/wp_enqueue_script for full details | |
wp_print_scripts('tribe-custom-calendar-script'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, how to load the events css only in pages i want ? i only use event calendar in a page inside my blog thx