Replace/Remove WordPress default JS

Replace/Remove WordPress default JS

if( !is_admin()){
$js_url = esc_url( get_template_directory_uri() )."/js/jquery-1.9.1.min.js";
wp_deregister_script('jquery');
wp_register_script('jquery', ($js_url), false, '1.9.1');
wp_enqueue_script('jquery');
}
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s