I'm currently working on customizing a Wordpress menu that includes classic menu items and their respective submenus. The issue I'm facing is that when I hover over an item with children, its submenu will display. However, I want to have a fixed submenu show for the current page.
To see my menu in action, you can visit my JSFiddle here. When you hover over "Live show" or "Elvis Presley", you'll notice their respective submenus appear. Elvis Presley is the current page and has the CSS class current-menu-item
. I would like to make its submenu visible without requiring a hover, while still allowing Live show's submenu to display on hover. Once you unhover, I'd like the current submenu to reappear.
In my latest attempt using CSS, I added:
.second-navigation ul > li.current-menu-item > ul {
visibility: visible;
}
This successfully displays the current submenu, but prevents me from seeing Live show's submenu on hover. How can I achieve this? Apologies for any language barriers.
The best way to respond would be through a solution provided in JSFiddle.