Skip to content

Instantly share code, notes, and snippets.

@imammubin
Created February 3, 2014 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imammubin/8789243 to your computer and use it in GitHub Desktop.
Save imammubin/8789243 to your computer and use it in GitHub Desktop.
<?php
/*
Plugin Name: addJQueryGoogle
Plugin URI: http://bit.ly/jquery-google-plugin-v1
Description: add JQUERY LIBRARY from google
Version: 1.0
Author: iMubin
Author URI: http://www.imammubin.com
*/
function addJQueryGoogle(){
?>
<script type="text/javascript">
var i=document.createElement('script');
i.type='text/javascript';
i.src='http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js';
document.head.appendChild(i);
</script>
<?php
}
add_action('wp_head','addJQueryGoogle');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment