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.

Suggested Read:  How to add google search option in Firefox on Linux Mint

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

*