jbutko
7/23/2013 - 7:39 PM

WP, function.php: Register, Deregister & Enqueue scripts short

WP, function.php: Register, Deregister & Enqueue scripts short

if (!is_admin()) add_action( 'wp_enqueue_scripts', 'my_jquery_enqueue', 11 );
function my_jquery_enqueue() {
  wp_deregister_script( 'jquery' );
	wp_register_script( 'jquery', get_template_directory_uri() . '/js/jquery.js', false, null );
	wp_enqueue_script( 'jquery' );
}