Ready to get started?Download WordPress


Thematic Superfish jQuery Conflict (2 posts)

  1. acrane
    Posted 9 months 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 Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 9 months ago #

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


You must log in to post.

About this Topic