Title: Using with non WordPress jquery scripts
Last modified: August 21, 2016

---

# Using with non WordPress jquery scripts

 *  Resolved [andymiller](https://wordpress.org/support/users/andymiller/)
 * (@andymiller)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/using-with-non-wordpress-jquery-scripts/)
 * Hi
 * I’ve been using the plugin and it works really well. Thank you.
 * I’m thinking about installing Swipebox which doesn’t have a wordpress plugin.
   I was thinking about using the method described in the Dave Ward article to get
   jquery from the Google CDN.
 * If I did that would there be any conflict with the plugin? Should I deactivate
   the plugin?
 * Thanks.
 * [https://wordpress.org/plugins/use-google-libraries/](https://wordpress.org/plugins/use-google-libraries/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [andymiller](https://wordpress.org/support/users/andymiller/)
 * (@andymiller)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/using-with-non-wordpress-jquery-scripts/#post-4582026)
 * EDIT (except that I can’t edit my post). Googling around it looks like I’d need
   to amend the functions.php, along the lines of:
 * 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” : “”) . “://ajax.googleapis.
   com/ajax/libs/jquery/1.7.1/jquery.min.js”, false, null); wp_enqueue_script(‘jquery’);}
 * Does this in effect replace what the plugin does? Does the plugin do this anyway?
 * Thanks again – sorry if these are daft questions.
 *  Plugin Author [Jason Penney](https://wordpress.org/support/users/jczorkmid/)
 * (@jczorkmid)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/using-with-non-wordpress-jquery-scripts/#post-4582309)
 * There’s a lot of other information with the script registration besides just 
   the URL. The plugin handles all of that. Also it doesn’t just do jQuery itself,
   it does all the libraries it can, and uses the exact version that your WordPress
   install requires you to use.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Using with non WordPress jquery scripts’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/use-google-libraries.svg)
 * [Use Google Libraries](https://wordpress.org/plugins/use-google-libraries/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/use-google-libraries/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/use-google-libraries/)
 * [Active Topics](https://wordpress.org/support/plugin/use-google-libraries/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/use-google-libraries/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/use-google-libraries/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jason Penney](https://wordpress.org/support/users/jczorkmid/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/using-with-non-wordpress-jquery-scripts/#post-4582309)
 * Status: resolved