[Resolved] Navigations on different rows and both to ”Float right”

Home Forums Support [Resolved] Navigations on different rows and both to ”Float right”

Home Forums Support Navigations on different rows and both to ”Float right”

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2009206
    Kirmo

    Hi,

    I have had some difficulties to launch secondary navigation (with language links + search bar) via GP-customize panels. Now it is published there by hook ”before_header_content”, but is there some tricks how to make it flow nicely right on the top of the Primary navigation? thanks if you can find some solutions here.

    #2009267
    David
    Staff
    Customer Support

    Hi there,

    try adding this CSS:

    #secondary-navigation {
        order: 10;
        margin: unset;
    }
    @media(max-width: 1150px) {
        .has-inline-mobile-toggle #site-navigation {
            order: 20;
        }
    }
    #2011246
    Kirmo

    Hi, thanks. It reordered (primary & secondary) navigations now but did not put it (secondary) on the top of the primary (menu+). I wonder is there some way to do it?

    Also (sorry another point here) I would like the secondary navigation to stay always in ”desktop mode” and not to be organised under ”mobile toggle” even in narrower windows, is there some way to keep it so?

    #2011479
    Ying
    Staff
    Customer Support

    Hi Kirmo,

    Can you try this CSS:

    @media(max-width: 1150px) {
    button.menu-toggle.secondary-menu-toggle {
        display: none;
    }
    .secondary-navigation .main-nav ul {
        display: flex !important;
    }
    }
    @media(min-width: 1151px) {
    nav#secondary-navigation {
        position: absolute;
        top: 15px;
        right: 30px;
    }
    nav#site-navigation {
        margin-top: 30px;
    }
    }
    #2011531
    Kirmo

    Nice, seems to work, thank you!

    #2011561
    Ying
    Staff
    Customer Support

    No problem 🙂

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