Thematic Superfish jQuery Conflict (2 posts)

  1. Overflow
    Posted 2 years ago #

    Please, Please, can someone tell me how to write a jQuery snippet on a Thematic Child theme that doesn't get conflicted by the Superfish dropdowns?

    I've tried: replacing the $ with jQuery but it doesn't seem to be working. Below is my code in my functions:

    function my_in_head(){ 	?>
    	<script type="text/javascript">
    	jQuery(document).ready(function(jQuery) {
    		jQuery('.snips').mouseenter(function() {
    			jQuery(this).animate({paddingLeft: '5px', backgroundColor: "#C6C6C6"});
    		jQuery('.snips').mouseleave(function() {
    			jQuery(this).animate({paddingLeft: '0px', backgroundColor: "#AEAEAE"});
    	}); //end document ready functions
    	/* ]]> */
    <?php }
    add_action('wp_head', 'my_in_head');
  2. Andrew
    Bawk bawk moderator
    Posted 2 years ago #

    You ought to be checking your browser's console log to see what's up and whether there are any revealing error messages.

Topic Closed

This topic has been closed to new replies.

About this Topic