Site logo

[Resolved] seconday menu float right not working

Home Forums Support [Resolved] seconday menu float right not working

Home Forums Support seconday menu float right not working

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #2421782
    Cris

    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?

    #2422029
    Leo
    Staff
    Customer Support

    Hi there,

    I believe this method would work better for the social icons:
    https://docs.generatepress.com/article/generate_menu_bar_items/

    Let me know if this helps 🙂

    #2422166
    Cris

    Hi Leo,

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

    #2422237
    Ying
    Staff
    Customer Support

    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;
    }
    }
    #2422814
    Cris

    Thanks, Ying!

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

    #2423334
    Ying
    Staff
    Customer Support

    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;
    }
    #2423457
    Cris

    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;
    }
    }

    #2424453
    Ying
    Staff
    Customer Support

    You are welcome 🙂

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.