I'm working on a website on wordpress.
I'm using a jquery slider on my home page, using roundabout jquery slider. this jquery plugin works only with jquery 1.2.1. It works fine, because I've added a migrate script on my website.
// Load jQuery
//////////////////////////////////////////////////////////////
add_action('wp_enqueue_scripts', 'my_scripts_method', 200);
function my_scripts_method() {
wp_deregister_script('jquery');
//wp_register_script('jquery', ("http://code.jquery.com/jquery-latest.min.js"), false);
wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"), false);
wp_enqueue_script('jquery');
wp_register_script('migrate', ('http://code.jquery.com/jquery-migrate-1.2.1.js'), false);
wp_enqueue_script('migrate');
}
Now I have a problem because the person in charge of the content added a plugin, and this plugin uses the last jquery version, and when the plugin is activated, I think that the plugin overwrites my migrate script, and I have troubles with my slider.
Is there a way of using 2 different versions of jquery on my website ? Using only jquery 1.2.1 for my slider, and the last jquery version for the rest of my website ? or to avoid the new plugin to overwrite my migrate script ?
thanks a lot for your help !