Site logo

Archived topic

seconday menu float right not working

7 replies · Started by Cris on November 18, 2022

Viewing posts 1–8 of 8

Hello,

I have searched for information here in support but I did not find a solution. I explain what happens to me:
I have the "primary menu" floating to the right and now I have put a "secondary menu" that I want to be on the right of the "primary menu". I put "float right" to both but the secondary is below the primary.
How do I fix please?

Hi Leo,

That's great but on mobile this disappears. I wish they would appear inside the burger.

Try adding this CSS:

@media (max-width: 1328px) {
.has-inline-mobile-toggle #site-navigation .inside-navigation > .menu-bar-items, .has-inline-mobile-toggle #site-navigation .inside-navigation > .menu-bar-items >* {
    display: flex !important;
}

.has-inline-mobile-toggle .header-widget, .has-inline-mobile-toggle #site-navigation {
    flex-basis: fit-content;
    margin-left: 0;
}
}

Thanks, Ying!

Now it does appear but it is out of the hamburger menu. I would like it to appear inside the hamburger menu.

I would like it to appear inside the hamburger menu.

Change the CSS:

.has-inline-mobile-toggle #site-navigation .inside-navigation > .menu-bar-items, .has-inline-mobile-toggle #site-navigation .inside-navigation > .menu-bar-items >* {
    display: flex !important;
}

to:

.mobile-menu-open .has-inline-mobile-toggle #site-navigation .inside-navigation > .menu-bar-items, .mobile-menu-open .has-inline-mobile-toggle #site-navigation .inside-navigation > .menu-bar-items >* {
    display: flex !important;
}

Cool!
I only had to remove a part because it expanded the hamburger menu to the right of the logo

Thank you very much!

Finally it was like this
`@media (max-width: 1328px) {
.has-inline-mobile-toggle #site-navigation .inside-navigation > .menu-bar-items, .has-inline-mobile-toggle #site-navigation .inside-navigation > .menu-bar-items >* {
display: flex !important;
}

.has-inline-mobile-toggle .header-widget, .has-inline-mobile-toggle #site-navigation {
flex-basis: fit-content;
margin-left: 0;
}
}

You are welcome :)

This archived topic is closed to new replies.