Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 134480

tonyzg on "wp_deregister_script('jquery') not working in v3.7.1"

$
0
0

It seems I cannot deregister jquery in WP 3.7.1.

I need jQuery 1.6.0, but WP keeps loading jQuery v1.10.2 no matter what I try to do.

Below is my hook in functions.php:

if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", '');
   function my_jquery_enqueue() {
   wp_deregister_script('jquery');
   wp_register_script('jquery', "//ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js", false, null);
   wp_enqueue_script('jquery');
}

Viewing all articles
Browse latest Browse all 134480

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>