Include jquery in Theme Wordpress


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



Copy this code and paste it in your HTML
  1. if( !is_admin()){
  2. wp_deregister_script('jquery');
  3. wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"), false, '1.4.2');
  4. wp_enqueue_script('jquery');
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.