WordPress include real, unmodified jQuery


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



Copy this code and paste it in your HTML
  1. wp_deregister_script('jquery');
  2. wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js', array(/*name of script dependencies*/), '1.4.2', true /*load in footer?*/);
  3. wp_enqueue_script('jquery');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.