Title: Jquery doesn&#039;t work but javascript does&#8230;
Last modified: August 20, 2016

---

# Jquery doesn't work but javascript does…

 *  Resolved [Venom Rush](https://wordpress.org/support/users/venom-rush/)
 * (@venom-rush)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/jquery-doesnt-work-but-javascript-does/)
 * Hi
 * I’m not sure what the problem is with my blog and jquery. I have the following
   code in my header.php that’s supposed to load jQuery:
    `<?php wp_enqueue_script("
   jquery"); /* Loads jQuery if it hasn't been loaded already */ ?>`
 * When I view the page source I see that jQuery has been loaded:
    `<script type
   ='text/javascript' src='http://domain-goes-here.com/wp-includes/js/jquery/jquery.
   js?ver=1.7.1'></script>`
 * But I cannot perform any jQuery on my blog. I know it’s not a conflict because
   I created a blank html page and referenced the url in the page source and tested
   my jQuery in this html page and it didn’t work.
 * Then when I referenced a jquery file I have directly my jQuery code works fine.
   `
   <script type='text/javascript' src='js/jquery-1.5.1.min.js'></script>`
 * This leads me to believe there is something wrong with WordPress’ jQuery file?
 * Any help would be greatly appreciated.

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

 *  Moderator [keesiemeijer](https://wordpress.org/support/users/keesiemeijer/)
 * (@keesiemeijer)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/jquery-doesnt-work-but-javascript-does/#post-2618677)
 * try loading your scripts in your theme’s functions.php like this: [http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Load_a_script_from_your_theme_which_depends_upon_a_WordPress_Script](http://codex.wordpress.org/Function_Reference/wp_enqueue_script#Load_a_script_from_your_theme_which_depends_upon_a_WordPress_Script)
 * And in your script use a noConflict wrapper for your script to work:
    [http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_wrappers](http://codex.wordpress.org/Function_Reference/wp_enqueue_script#jQuery_noConflict_wrappers)
 *  Thread Starter [Venom Rush](https://wordpress.org/support/users/venom-rush/)
 * (@venom-rush)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/jquery-doesnt-work-but-javascript-does/#post-2618680)
 * Thanks keesiemeijer
 * It turns out that I just needed to replace all my dollar symbols with “jQuery”.
 * Always ends up being the simplest thing that causes the biggest problem.

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

The topic ‘Jquery doesn't work but javascript does…’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Venom Rush](https://wordpress.org/support/users/venom-rush/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/jquery-doesnt-work-but-javascript-does/#post-2618680)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
