Home » Wordpress » How to Use Jquery CDN Media Template file in wordpress website

Here is code which show you that how to Use jQuery CDN Media Template file in wordpress website.
Just copy and Paste below code to your theme function.php file.

For jQuery All Version file url you will get form http://code.jquery.com/

if (!is_admin()) add_action("wp_enqueue_scripts", "my_jquery_enqueue", 11);
function my_jquery_enqueue() {
   wp_deregister_script('jquery');
   wp_register_script('jquery', "http" . ($_SERVER['SERVER_PORT'] == 443 ? "s" : "") . "://code.jquery.com/jquery-1.7.2.min.js", false, null);
   wp_enqueue_script('jquery');
}

Array ( [0] => Wordpress, Wordpress Designer, Wordpress theme freelancer )