jQuery load latest version in WordPress


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. // from bit.ly/kleary-latestjqy
  2.  
  3. /**
  4. * Use latest jQuery release
  5. */
  6. if( !is_admin() ){
  7. wp_deregister_script('jquery');
  8. wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"), false, '');
  9. wp_enqueue_script('jquery');
  10. }

URL: http://bit.ly/kleary-latestjqy

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.