How could I make WP load JQuery but not affect my plugins?
-
Hi I want to use the jquery-1.3.2,
so I use
function scripts() { if ( !is_admin() ) { // this if statement will insure the following code only gets added to your wp site and not the admin page cause your code has no business in the admin page right unless that's your intentions // jquery wp_deregister_script('jquery'); // this deregisters the current jquery included in wordpress wp_register_script('jquery', ("https://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"), false); // this registers the replacement jquery wp_enqueue_script('jquery'); // you can either let wp insert this for you or just delete this and add it directly to your template } } add_action( 'wp_print_scripts', 'scripts'); // now just run the function
It works but some of my plugins disappear, including a slideshow, and a contact form’s name cannot be entered.
Could anyone help me?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How could I make WP load JQuery but not affect my plugins?’ is closed to new replies.