I installed the search bar and it displaces the logo on the primary navigation bar. I am trying to move the search bar to the middle of the primary navigation between the logo and the shopping cart.
I installed this hook:
<form role=”search” method=”get” class=”search-form” action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>”>
<label>
<span class=”screen-reader-text”>Search for:</span>
<input type=”search” class=”search-field” placeholder=”Search…” value=”<?php echo get_search_query(); ?>” name=”s” />
</label>
<input type=”submit” class=”search-submit” value=”″ />
</form>
and then set the css for the icon:
.main-navigation .search-submit {
font-family: GeneratePress;
}
which created the search bar but puts it next to the logo on the left side of the primary navigation bar and to the left side of the logo.
The header is being used as the Primary navigation.
How do I get the logo to remain in it’s default position and move the search bar to the middle?
https://rivervalleyhvac.com/wp-content/uploads/hvac-screenshot.png