Title: Script only works when using Google library jquery?
Last modified: August 21, 2016

---

# Script only works when using Google library jquery?

 *  Resolved [boborg](https://wordpress.org/support/users/boborg/)
 * (@boborg)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/script-only-works-when-using-google-library-jquery/)
 * Can anybody explain why a script only works when I make a function in my theme
   functions.php to use the jquery from Google (1.10.2)?
 * So it works with
    `<script type='text/javascript' src='//ajax.googleapis.com/
   ajax/libs/jquery/1.10.2/jquery.min.js?ver=1.10.2'></script>`
 * But it does not work with
    `<script type='text/javascript' src='http://mysiteurl/
   wp-includes/js/jquery/jquery.js?ver=1.10.2'></script>`

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

 *  [Senff – a11n](https://wordpress.org/support/users/senff/)
 * (@senff)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/script-only-works-when-using-google-library-jquery/#post-4668322)
 * Probably because the default WordPress jQuery library is “no conflict mode” (
   look [here](http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_Wrappers)
   for all details).
 * If your script starts with this:
 *     ```
       $(document).ready(function(){
           // ...code here...
       ```
   
 * Then you’ll need to change it to this if you use WordPress’ default jQuery library:
 *     ```
       jQuery(document).ready(function($) {
           // ...code here....
       ```
   
 *  Thread Starter [boborg](https://wordpress.org/support/users/boborg/)
 * (@boborg)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/script-only-works-when-using-google-library-jquery/#post-4668334)
 * Thank you very much for the explanation
 *  anonymized-11892634
 * (@anonymized-11892634)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/script-only-works-when-using-google-library-jquery/#post-4668714)
 * Been struggling with this for ages, thanks boborg!

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

The topic ‘Script only works when using Google library jquery?’ is closed to new
replies.

## Tags

 * [jquery](https://wordpress.org/support/topic-tag/jquery/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: anonymized-11892634
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/script-only-works-when-using-google-library-jquery/#post-4668714)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
