Using Google hosted javascript libraries

0

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 enjoyed this article, Get email updates (It’s Free)
avatar
Author :  

Hello visitor! Subscribe to the RSS feed or subscribe via email to receive updates.

Leave a Reply