Link to home
Start Free TrialLog in
Avatar of jblayney
jblayneyFlag for Canada

asked on

Make third level dropdown menu closed by default.

Hello,

I have a Wordpress menu, it is a 3 level menu and the third level isn't working properly.

If you visit this link.
http://oalaca.nextmp.net/

Under the profession menu you will see What is Landscape Architecture, the next 3 menu items  ( Why is Landscape Architecture Important?, and  Studying Landscape Architecture only appear when  What Does a Landscape Architect Do) are supposed to only appear when you hover over What is Landscape Architecture?, but they display as default...  

Interesting thing, if I go and scroll over that item and and then scroll off, those 3 menu items close and everything works as it should.

So my question is
1. How do i make What Does a Landscape Architect Do?, Why is Landscape Architecture Important?, and  Studying Landscape Architecture only appear when  What Does a Landscape Architect Do is hovered over?
Avatar of Robert Granlund
Robert Granlund
Flag of United States of America image

Place those 3 menu items as children of the menu choice.  Make the new UL display:none; and then on the menu item li_ID NUMBER:hover ul {display:block;}
If you make those last 3 menu items children of the prior LI I can walk you through the rest
Avatar of jblayney

ASKER

Hello,

I don't understand what you mean, they are children now,

What Does a Landscape Architect is my main <li>

that has a nested <ul> which contains the other 3
ASKER CERTIFIED SOLUTION
Avatar of Robert Granlund
Robert Granlund
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello,

that as didn't work, it is still open  when you first roll over the  profession menu
I tweaked it slightly, this works...


#menu-item-36086 .dropdown-menu {
display:none !important;
margin:0 0 0 13px;
}

#menu-item-36086:hover .dropdown-menu {
display:block  !important;
}
Looks good and I'm glad I could help.  I know how frustrating CSS can be in these instances.

You can tweak the positioning here:

#menu-item-36086 .dropdown-menu {
display:none !important;
margin:0 0 0 13px;
}
The positioning is fine, it am just struggling on getting the caret in the right position now
Open a new question and tag me.  Me or somebody else will help sort it out.
I figured it out, thank you