Including latest jQuery Library to your WordPress Site
First off, the basic code. This would go into your header.php. I put it directly above the
<?php wp_head(); ?>
call. If you don’t have that in your theme, you have bigger issues, as it is vital. Check out the info on that. The code looks like this:
<?php wp_deregister_script('jquery'); wp_register_script('jquery', 'http://code.jquery.com/jquery-1.8.2.min.js'); wp_enqueue_script('jquery'); ?>
That’s it really. That’ll deregister WordPress’ jquery and start using Google’s.
Posted on February 8, 2013, in Web Dev and tagged Including latest jQuery Library to your WordPress Site. Bookmark the permalink. Leave a comment.