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"> //<![CDATA[ jQuery.noConflict(); 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 /* ]]> */ </script> <?php } add_action('wp_head', 'my_in_head');
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Thematic Superfish jQuery Conflict’ is closed to new replies.