I just can´t get it running. I have the "default" WordPress Menu. I created a seperate div directly under my header / menu. It is kind of a mega menu. In my head it´s just simple. But I can´t trigger the div to show up when I hover over the desired menu point.
I tried everything with css. But I think it´s not possible to trigger it with it as it isn´t a sibling or a parent div.
Do you have an idea, because it can´t be that crazy right? I have hidden the div with display:none and when hovering over the "#menu-item-136 > a:nth-child(1)" it should go again to display:block. Do I think to easy on that one?
#menu-item-136 > a:nth-child(1):hover + .mega-menu {display:block;}
#menu-item-136 > a:nth-child(1):hover ~ .mega-menu {display:block;}
#menu-item-136 > a:nth-child(1):hover > .mega-menu {display:block;}
does nothing.
Can u please help. :/
Adding codes:
<li id="menu-item-136" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-has-children menu-item-136 aux-menu-depth-0 aux-menu-root-2 aux-menu-item">
<a href="#" class="aux-item-content">
<span class="aux-menu-label"><i aria-hidden="true" class="services auxicon-list"></i> Leistungen</span>
<span class="aux-submenu-indicator"></span></a>
</br>
</br>
<div class="mega-menu">content</div>
I already solved it myself. Thanks. I also don´t know why this simple question needs to be "Closed because it needs debugging details"!? How much easier can I make the question: One Menupoint, one div, show div while hovering over menupoint?!?! I found out with a simple javascript with mouseover. You can delete this question if it was to difficult. Thanks.