Using Google hosted javascript libraries

To use Google-hosted JavaScript libraries Just add this code to your functions.php file

if( !is_admin()){
wp_deregister_script(’jquery’);
wp_register_script(’jquery’, (”http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js”), false, ‘1.3.2?);
wp_enqueue_script(’jquery’);
}

Now call your JavaScript file, after the wp_head function in header.php file.

Here yourscrip=name of your javascript file.

If you liked this article, please subscribe to our YouTube Channel. You can also stay connected with us on X (Twitter) and Facebook.



Also Read:  Guide to Deleting Google History

Leave a Reply