I’m trying to insert the search bar into the top navigation bar so that it appears to the right hand side of the nav buttons with equal space top and bottom, so it’s also inline with the nav buttons text.
So, I have added in the code <?php get_search_form(); ?> into my header.php file in different places but I can’t get it to appear after my navigation buttons inside the navigation bar.
I’ve tried placing it inside the <div class=”navbar-header”> in various locations but it always appears before the nav buttons. The only way I could position it to the right was using the position element in CSS however this loses it’s fluidity when resizing the browser, overlapping the nav buttons or looking untidy.
If you could provide any help on this I’d really appreciate it!
Thanks, Marc 🙂
Viewing 1 post (of 1 total)
The topic ‘Search Bar in Navigation Header’ is closed to new replies.
Disclosure: This page contains external affiliate links that may result in us receiving a commission if you choose to purchase mentioned product. The opinions on this page are our own and we don't receive additional bonus for positive reviews.
We change everything WordPress. One WordPress theme at a time.