You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
add search form and place hamburger icon on the right #541
Hi tried the code, it didnt work. As you can see in the sample provided, the search form goes inside the dropdown on mobile. And I want the search form on the other right end not middle:
Your desired results is logo - menu - searchform if the navbar is expanded and logo - toggle (search form inside the menu) if the navbar is not expanded?
Your desired results is logo - menu - searchform if the navbar is expanded and logo - toggle (search form inside the menu) if the navbar is not expanded?
The 'container' => false suppresses the output of the container around the unordered list. This allows you to add the search form after the list but before the container closes. Note that the container must then be added manually. Also, note that placing the toggle below the menu, as you did, pushes the toggle below the menu when you open the collapsed menu because the menu - if open - has a width of 100%.
Activity
IanDelMar commentedon May 1, 2024
Do you want a non-expanding navbar with the logo on the left, followed by a search form, and then the toggle?
Then try this
DeveloperAliRahi commentedon May 1, 2024
something exactly like the first sample on this page:
https://getbootstrap.com/docs/4.0/components/navbar/
DeveloperAliRahi commentedon May 2, 2024
Hi tried the code, it didnt work. As you can see in the sample provided, the search form goes inside the dropdown on mobile. And I want the search form on the other right end not middle:
`
IanDelMar commentedon May 4, 2024
Your desired results is logo - menu - searchform if the navbar is expanded and logo - toggle (search form inside the menu) if the navbar is not expanded?
IanDelMar commentedon May 4, 2024
If that's what you want, you can try this
The
'container' => falsesuppresses the output of the container around the unordered list. This allows you to add the search form after the list but before the container closes. Note that the container must then be added manually. Also, note that placing the toggle below the menu, as you did, pushes the toggle below the menu when you open the collapsed menu because the menu - if open - has a width of 100%.