Skip to content

Instantly share code, notes, and snippets.

@brianmaierjr
Last active August 29, 2015 14:06
Show Gist options
  • Save brianmaierjr/e6a03f19dc9258d5af88 to your computer and use it in GitHub Desktop.
Save brianmaierjr/e6a03f19dc9258d5af88 to your computer and use it in GitHub Desktop.
WP fix for jQuery conflict
/*
Fix for jQuery conflict
*/
function enqueue_scripts() {
wp_deregister_script( 'jquery' );
wp_register_script( 'jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', false, false, false );
wp_enqueue_script( 'jquery' );
}
add_action('wp_enqueue_scripts', 'enqueue_scripts');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment