Dropdown Issues

Hi everyone, I need help to fix the drop down issue of this website http://www.amext.com/[http://www.amext.com/](http://www.amext.com/). When you hover to “Locations” Menu you will see there that there is an another drop down sub menu appearing. I think that the theme doesn’t have a function to fix a 2nd drop down. Does a jQuery is needed for this or a CSS fix? Thank you!

Are you trying to get rid of the arrows indicating another sub menu? Did you go to Appearance > Menus and see if there are sub menus without links that you can change?

I’m trying to fix it. If you hover on “Locations” the sub menu of “Kansas” should not appear. It will only appear when you hover on “Kansas” menu.

Did you go to Appearance > Menus as I noted? Look at the menu structure. You can modify it from there.

Yes I did. All of them have links. http://screencast.com/t/3NX2uatEqiW

Can you take a screenshot of your menu structure? Posted this too fast.

I think I found the culprit.

function mainmenu(){
jQuery(" nav ul li ").css({display: ""}); // Opera Fix
jQuery(" nav ul li").hover(function(){
		jQuery(this).find('.sub-menu').css({visibility: "visible",display: "none"}).show(400);
		},function(){
		jQuery(this).find('.sub-menu').css({visibility: "hidden"});
		});
}
jQuery(document).ready(function(){					
	mainmenu();

    jQuery('span.wpcf7-form-control-wrap.quiz-995 label').prepend('<span class="verify">Verify * </span>');
});

Just need to figure out how to fix this

Fixed it! Here’s what I did:

function mainmenu(){
jQuery(" nav ul li ").css({display: ""}); // Opera Fix
jQuery(" nav ul li").hover(function(){
		jQuery(this).find('.sub-menu:first').css({visibility: "visible",display: "none"}).show(400);
		},function(){
		jQuery(this).find('.sub-menu').css({visibility: "hidden"});
		});
}
jQuery(document).ready(function(){					
	mainmenu();

    jQuery('span.wpcf7-form-control-wrap.quiz-995 label').prepend('<span class="verify">Verify * </span>');
});

I added “:first”

That’s good info to know, thanks for sharing the fix!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.