title: Uncaught ReferenceError: jQuery is not defined
body: <p>I have implemented some JavaScript on my site but I keep getting the following error messages: </p>
  
  <blockquote>
    <p>Uncaught ReferenceError: jQuery is not defined </p>
  </blockquote>
  
  <p>and </p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected token &lt;</p>
  </blockquote>
  
  <p>This is the JavaScript that I am using in the header.php:</p>
  
  <pre><code>    &lt;script type="text/javascript" src="/test/wp-content/themes/child/script/jquery.jcarousel.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="/test/wp-content/themes/child/script/jquery.scrollTo.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="/test/wp-content/themes/child/script/jquery.backgroundPosition.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="/test/wp-content/themes/child/script/scripts.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="/test/wp-content/themes/child/script/jquery.cycle.lite.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="/test/wp-content/themes/child/script/jquery.accordian.js"&gt;&lt;/script&gt;
  
      &lt;script type="text/javascript"&gt;
          jQuery(document).ready(function () {
              jQuery('#contentGallery').cycle({
                  fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
              });
          });
      &lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body &lt;?php body_class(); ?&gt;&gt;
  &lt;div id="page" class="hfeed"&gt;
      &lt;header id="branding" role="banner"&gt;
              &lt;hgroup&gt;
                  &lt;h1 id="site-title"&gt;&lt;span&gt;&lt;a href="&lt;?php echo esc_url( home_url( '/' ) ); ?&gt;" title="&lt;?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?&gt;" rel="home"&gt;&lt;?php bloginfo( 'name' ); ?&gt;&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;
                  &lt;h2 id="site-description"&gt;&lt;?php bloginfo( 'description' ); ?&gt;&lt;/h2&gt;
              &lt;/hgroup&gt;
  
              &lt;?php
                  // Check to see if the header image has been removed
                  $header_image = get_header_image();
                  if ( ! empty( $header_image ) ) :
              ?&gt;
              &lt;a href="&lt;?php echo esc_url( home_url( '/' ) ); ?&gt;"&gt;
                  &lt;?php
                      // The header image
                      // Check if this is a post or page, if it has a thumbnail, and if it's a big one
                      if ( is_singular() &amp;&amp;
                              has_post_thumbnail( $post-&gt;ID ) &amp;&amp;
                              ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), array( HEADER_IMAGE_WIDTH, HEADER_IMAGE_WIDTH ) ) ) &amp;&amp;
                              $image[1] &gt;= HEADER_IMAGE_WIDTH ) :
                          // Houston, we have a new header image!
                          echo get_the_post_thumbnail( $post-&gt;ID, 'post-thumbnail' );
                      else : ?&gt;
                      &lt;img src="&lt;?php header_image(); ?&gt;" width="&lt;?php echo HEADER_IMAGE_WIDTH; ?&gt;" height="&lt;?php echo HEADER_IMAGE_HEIGHT; ?&gt;" alt="" /&gt;
                  &lt;?php endif; // end check for featured image or standard header ?&gt;
              &lt;/a&gt;
              &lt;?php endif; // end check for removed header image ?&gt;
  
              &lt;nav id="access" role="navigation"&gt;
  
  &lt;div id="nav"&gt;
              &lt;ul&gt;
                  &lt;li class="end"&gt;&lt;a href="#contact" id="navContact" class="goto_contact"&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#context" id="navContext" class="goto_context"&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#artScience" id="navArtScience" class="goto_artScience"&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;a href="#home" id="navHome" class="goto_home"&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
              &lt;div class="clear"&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div id="navPointer"&gt;
              &lt;div id="controlContainer"&gt;
                  &lt;div id="pointer"&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
      &lt;div id="contentHolder"&gt;
          &lt;div id="contentGallery"&gt;
              &lt;img src="Images/Gallery/london.jpg" width="1200" height="550" alt="London" /&gt;
              &lt;img src="Images/Gallery/singapore.jpg" style="display: none;" width="1200" height="550"
                  alt="Singapore" /&gt;
              &lt;img src="Images/Gallery/geneva.jpg" style="display: none;" width="1200" height="550"
                  alt="Geneva" /&gt;
          &lt;/div&gt;
          &lt;div id="contentShadow"&gt;
          &lt;/div&gt;
          &lt;div id="content"&gt;
              &lt;div id="contentScroller"&gt;
                  &lt;div id="home" class="page"&gt;
                      &lt;div class="homeContent"&gt;
                          &lt;span class="homeHeaderText"&gt;GMR&lt;/span&gt;
                          &lt;div class="clear"&gt;
                          &lt;/div&gt;
                          &lt;div class="homePageText"&gt;
                              &lt;p&gt; very long text 1
                              &lt;/p&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div id="artScience" class="page"&gt;
                      &lt;div class="pageContent"&gt;
                          &lt;div id="artSciencePage"&gt;
                              &lt;span class="headerText"&gt;About Us&lt;/span&gt;
                              &lt;div class="pageText"&gt;
                                  &lt;p&gt;
                                      Insert text here. 
                                  &lt;/p&gt;
                              &lt;/div&gt;
                              &lt;table border="0" cellpadding="0" cellspacing="0" class="linkTable"&gt;
                                  &lt;tr&gt;
                                      &lt;td valign="middle" height="100%"&gt;
                                          &lt;a href="#" id="theArtLnk" class="largeArrow"&gt;The Art&lt;/a&gt;
                                      &lt;/td&gt;
                                      &lt;td valign="middle" height="100%"&gt;
                                          &lt;a href="#" id="theScienceLnk" class="largeArrow"&gt;The Science&lt;/a&gt;
                                      &lt;/td&gt;
                                  &lt;/tr&gt;
                              &lt;/table&gt;
                          &lt;/div&gt;
                          &lt;div id="theArtPage" class="closed"&gt;
                              &lt;span class="headerText"&gt;The Art&lt;/span&gt;
                              &lt;div class="pageText"&gt;
                                  &lt;a href="#" class="acc_trigger"&gt;Sensitivity&lt;/a&gt;
                                  &lt;div class="acc_container"&gt;
                                      &lt;p&gt;very long text 2&lt;/p&gt;
                                  &lt;/div&gt;
                                  &lt;div class="seperator"&gt;
                                  &lt;/div&gt;
                                  &lt;a href="#" class="acc_trigger"&gt;Creativity&lt;/a&gt;
                                  &lt;div class="acc_container"&gt;
                                      &lt;p&gt;very long text 3&lt;/p&gt;
                                  &lt;/div&gt;
                                  &lt;div class="seperator"&gt;
                                  &lt;/div&gt;
                                  &lt;a href="#" class="acc_trigger"&gt;Intuition&lt;/a&gt;
                                  &lt;div class="acc_container"&gt;
                                      &lt;p&gt;very long text 4&lt;/p&gt;
                                  &lt;/div&gt;
                                  &lt;div class="seperator"&gt;
                                  &lt;/div&gt;
                                  &lt;a href="#" class="acc_trigger"&gt;Judgment&lt;/a&gt;
                                  &lt;div class="acc_container"&gt;
                                      &lt;p&gt;very long text 5&lt;/p&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;a href="#" id="artToScienceLnk" class="largeArrow"&gt;The Science&lt;/a&gt;
                          &lt;/div&gt;
                          &lt;div id="theSciencePage" class="closed"&gt;
                              &lt;span class="headerText"&gt;The Science&lt;/span&gt;
                              &lt;div class="pageText"&gt;
                                  &lt;a href="#" class="acc_trigger_2"&gt;Methodology&lt;/a&gt;
                                  &lt;div class="acc_container_2"&gt;
                                      &lt;p&gt;very long text 6&lt;/p&gt;
                                  &lt;/div&gt;
                                  &lt;div class="seperator"&gt;
                                  &lt;/div&gt;
                                  &lt;a href="#" class="acc_trigger_2"&gt;Research&lt;/a&gt;
                                  &lt;div class="acc_container_2"&gt;
                                      &lt;p&gt;very long text 7&lt;/p&gt;
                                  &lt;/div&gt;
                                  &lt;div class="seperator"&gt;
                                  &lt;/div&gt;
                                  &lt;a href="#" class="acc_trigger_2"&gt;Team Approach&lt;/a&gt;
                                  &lt;div class="acc_container_2"&gt;
                                      &lt;p&gt;very long text 8&lt;/p&gt;
                                  &lt;/div&gt;
                                  &lt;div class="seperator"&gt;
                                  &lt;/div&gt;
                                  &lt;a href="#" class="acc_trigger_2"&gt;Sharing Information&lt;/a&gt;
                                  &lt;div class="acc_container_2"&gt;
                                      &lt;p&gt;very long text 9&lt;/p&gt;
                                  &lt;/div&gt;
                              &lt;/div&gt;
                              &lt;a href="#" id="scienceToArtLnk" class="largeArrow"&gt;The Art&lt;/a&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div id="context" class="page"&gt;
                      &lt;div class="pageContent"&gt;
                          &lt;span class="headerText"&gt;Expertise&lt;/span&gt;
                          &lt;div class="pageText"&gt;
                              &lt;a class="acc_trigger_3" href="#"&gt;Expertise&lt;/a&gt;
                              &lt;div class="acc_container"&gt;
                                  &lt;p&gt;very long text 10&lt;/p&gt;
                              &lt;/div&gt;
                              &lt;div class="seperator"&gt;
                              &lt;/div&gt;
                              &lt;a class="acc_trigger_3" href="#"&gt;Business Context&lt;/a&gt;
                              &lt;div class="acc_container"&gt;
                                  &lt;p&gt;very long text 11&lt;/p&gt;
                              &lt;/div&gt;
                              &lt;div class="seperator"&gt;
                              &lt;/div&gt;
                              &lt;a class="acc_trigger_3" href="#"&gt;Cultural Context&lt;/a&gt;
                              &lt;div class="acc_container"&gt;
                                  &lt;p&gt;very long text 12&lt;/p&gt;
                              &lt;/div&gt;
                              &lt;div class="seperator"&gt;
                              &lt;/div&gt;
                              &lt;a class="acc_trigger_3" href="#"&gt;Candidate Context&lt;/a&gt;
                              &lt;div class="acc_container"&gt;
                                  &lt;p&gt;very long text 13&lt;/p&gt;
                              &lt;/div&gt;
                              &lt;div class="seperator"&gt;
                              &lt;/div&gt;
                              &lt;a class="acc_trigger_3" href="#"&gt;Financial Context&lt;/a&gt;
                              &lt;div class="acc_container"&gt;
                                  &lt;p&gt;very long text 14&lt;/p&gt;
                              &lt;/div&gt;
                              &lt;div class="seperator"&gt;
                              &lt;/div&gt;
                              &lt;a class="acc_trigger_3" href="#"&gt;Service Context &lt;/a&gt;
                              &lt;div class="acc_container"&gt;
                                  &lt;p&gt;very long text 15&lt;/p&gt;
                              &lt;/div&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div id="contact" class="page"&gt;
                      &lt;div class="pageContent"&gt;
                          &lt;span class="headerText"&gt;Contact&lt;/span&gt;
                          &lt;div class="pageText"&gt;
                              &lt;h2&gt;
                                  Tel: +44(0)1234 567 890&lt;/h2&gt;
                              &lt;h3&gt;
                                  Email: &lt;a href="mailto:info@info"&gt;info@info&lt;/a&gt;&lt;/h3&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
                  &lt;h3 class="assistive-text"&gt;&lt;?php _e( 'Main menu', 'twentyeleven' ); ?&gt;&lt;/h3&gt;
                  &lt;?php /*  Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. */ ?&gt;
                  &lt;div class="skip-link"&gt;&lt;a class="assistive-text" href="#content" title="&lt;?php esc_attr_e( 'Skip to primary content', 'twentyeleven' ); ?&gt;"&gt;&lt;?php _e( 'Skip to primary content', 'twentyeleven' ); ?&gt;&lt;/a&gt;&lt;/div&gt;
                  &lt;div class="skip-link"&gt;&lt;a class="assistive-text" href="#secondary" title="&lt;?php esc_attr_e( 'Skip to secondary content', 'twentyeleven' ); ?&gt;"&gt;&lt;?php _e( 'Skip to secondary content', 'twentyeleven' ); ?&gt;&lt;/a&gt;&lt;/div&gt;
                  &lt;?php /* Our navigation menu.  If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?&gt;
  
              &lt;/nav&gt;&lt;!-- #access --&gt;
      &lt;/header&gt;&lt;!-- #branding --&gt;
  </code></pre>
  
  <p>This is the code I am using in the footer.php:</p>
  
  <pre><code>&lt;div id="footerNav"&gt;
      &lt;ul&gt;
          &lt;li class="start"&gt;&lt;a href="#home" class="goto_home"&gt;Home&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#artScience" class="goto_artScience"&gt;About Us&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#context" class="goto_context"&gt;Approach&lt;/a&gt;&lt;/li&gt;
          &lt;li&gt;&lt;a href="#contact" class="goto_contact"&gt;Expertise&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>