B-219 Sec-55 Noida, India
+918010221733

How to replace default WordPress jQuery script with Google Library JQuery

WordPress installation comes with many default scripts and one of them is jQuery. But many of us have faced this problem when they need to replace default wordpress jQuery because it is not working properly.

In this article we will show you the method by which you will be able to replace wordpress jQuery script with Google Library script

Open your theme’s functions.php file and paste the following code

function remove_jquery() {
	if (!is_admin()) {
		wp_deregister_script('jquery');
		wp_register_script('jquery', 'http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js', false, '1.8.3');
		wp_enqueue_script('jquery');
	}
}
add_action('init', 'remove_jquery');
(Visited 133 times, 1 visits today)

Leave a reply