Title: plugin issue with jQuery (first plugin created)
Last modified: August 20, 2016

---

# plugin issue with jQuery (first plugin created)

 *  [KimSchroeder](https://wordpress.org/support/users/kimschroeder/)
 * (@kimschroeder)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-issue-with-jquery-first-plugin-created/)
 * I have jQuery included in the head tag of the header template for my theme.
    
   A simple test proved it worked.
 *     ```
       jQuery(function($) {
           alert('We are in.');
       });
       ```
   
 * loaded using script tags.
 * a second test using the script source for the plugin also worked:
 *     ```
       <script type="text/javascript"
          src="<?php bloginfo('home'); ?>/wp-content/plugins/WhatsUpWaucondaCalendar/scripts/WhatsUpWaucondaCalendar.js"></script>
       ```
   
 * when i reference the script file in the plugin php source i get the
    “jQuery 
   is not defined” message.
 * 1. I’m guessing plugin’s load before any main pages.
    2. i’m using firebug to
   see the messages and the script file is loading. 3. my plugin lives in a directory
   under the site.
 * It has to be simple and i just have to not see it.
 * Thanks!!!
    Kim

The topic ‘plugin issue with jQuery (first plugin created)’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [KimSchroeder](https://wordpress.org/support/users/kimschroeder/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-issue-with-jquery-first-plugin-created/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
