Black Friday sale! Get up to 25% off GP Premium! Learn more ➝

[Resolved] Search box inside navigation

Home Forums Support [Resolved] Search box inside navigation

Home Forums Support Search box inside navigation

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2270923
    Sandro

    Hi
    I am trying to put a search box inside the header/primary navigation.
    I was not able to do that using widget, maybe because header and navigation are merged.
    Then I tried using Element – Block – Hook (generate_inside_navigation). I am quite happy with the result: https://squarci.info/argomenti/404
    But the box is on the left side. I would like the box on the right side. But I’m not able to do it.
    Can you help me?

    #2271056
    David
    Staff
    Customer Support

    Hi there,

    change the Hook to generate_menu_bar_items

    #2271270
    Sandro

    Ok, that’s what I was looking for. Thanks

    But now I have another problem.

    To make the “generate_menu_bar_items” appears, I had to change the Structure (in Appearance – Customize – General) from Floats to Flexbox. After this change, my right sidebar is no sticky anymore.

    Then I tried to change my Structure in Floats again, but I don’t see that option anymore, even if I cancel the Element – Block – Hook (generate_menu_bar-item). Was that choice irreversible?

    I can keep the Structure in “Flexbox” anyway. But I would like my right sidebar sticky. I made my sidebar sticky with CSS:


    @media
    (min-width: 769px) {
    #right-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 3pc;
    }
    }

    Bu it seems that it doesn’t work anymore.

    What can I do now?

    #2271442
    Sandro

    In the meantime I’ve found the solution about the sticky sidebar with the new Flexbox Structure (necessary for “generate_menu_bar_item) in another topic!
    🙂
    Thanks for the tip

    #2271619
    David
    Staff
    Customer Support

    Glad to hear you found that!!

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