Site logo

Archived topic

submenu horizontally instead of vertically

5 replies · Started by letsdoit on January 28, 2020

Viewing posts 1–6 of 6

Hello Team,

I am wondering if their is some way that submenu is aligned horizontally instead of vertically upon hovering/clicking.

Also, once user clicks on Photographer Menu, is it possible that the respective submenus remain fixed and not fly out.

https://prnt.sc/quc8kc - what I am trying to achieve.

Regards,

Thanks David, it worked like charm.

I digged into forum replies and also figured out below - (if in case others also search for same so at one place),

Added below css which extended the width of submenu to full width and also centered it.

.inside-navigation {position: static;}

.main-navigation ul ul.sub-menu {text-align: center;}

ul.sub-menu li {float: none; display: inline-block;}

Glad to hear that :)

Hello David,

Somehow the menu is not fixed even though using same css which was used before.

Thanks

That CSS applied to the Navigation as Header option, with you current setup try this instead:

@media (min-width: 769px) {
    .main-navigation li.menu-item-has-children, .inside-navigation {
        position: static !important;
    }
    .inside-header {
        position: relative;
    }
    .main-navigation:not(.toggled) ul li:hover>ul {
        display: flex;
        left: 0 !important;
        justify-content: flex-end;
        width: 100%;
    }
}
This archived topic is closed to new replies.