Title: jQuery Issues within header.php
Last modified: August 19, 2016

---

# jQuery Issues within header.php

 *  [greg9885](https://wordpress.org/support/users/greg9885/)
 * (@greg9885)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/jquery-issues-within-headerphp/)
 * I’m having issues with jQuery and I’m not sure why. Is there a better way I should
   be incorporating the `wp_enqueue_script();`?? You can see a live version of the
   site here: angrybirdsguide.com. Here is part of the code I’m using in the header.
   php as well.
 *     ```
       <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
       	<?php wp_head(); ?>
   
       	<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/js/superfish.js"></script>
       	<script type="text/javascript">
       		$(document).ready(function() {
       			$('ul.menu').superfish({
       				delay:0, speed:0, autoArrows:true, dropShadows:false
       			});
       		});
       	</script>
   
       	<script src="<?php bloginfo('stylesheet_directory'); ?>/js/jquery.meerkat.1.3.min.js" type="text/javascript"></script>
       	<script type="text/javascript">
       		$(function(){
       			$('.meerkat').meerkat({
       			background: '#F0F5F7', height: '110px', width: '100%', position: 'bottom', close: '#close-meerkat', dontShowAgain: '#dont-show', cookieExpires: 2, animationIn: 'slide', animationSpeed:0
       			});
       		});
       	</script>
       ```
   

The topic ‘jQuery Issues within header.php’ 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/)
 * 0 replies
 * 1 participant
 * Last reply from: [greg9885](https://wordpress.org/support/users/greg9885/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/jquery-issues-within-headerphp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
