Support » Themes and Templates » Thematic Superfish jQuery Conflict

Thematic Superfish jQuery Conflict

  • 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');

Viewing 1 replies (of 1 total)
  • Moderator Andrew Nevins


    Forum moderator

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

Viewing 1 replies (of 1 total)
  • The topic ‘Thematic Superfish jQuery Conflict’ is closed to new replies.