Site logo

Archived topic

Search box inside navigation

4 replies · Started by Sandro on July 2, 2022

Viewing posts 1–5 of 5

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?

Hi there,

change the Hook to generate_menu_bar_items

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?

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

Glad to hear you found that!!

This archived topic is closed to new replies.