Hi, I need your help with my search field, I want my search field after the menu in navigation bar, the code that I use is this:
the 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" />
<input type="hidden" name="post_type" value="products" />
</label>
<input type="submit" class="search-submit" value="" />
</form>
In CSS:
`.inside-navigation .search-form {
float: left;
line-height: 60px;
}
.main-navigation .search-submit {
font-family: GeneratePress;
}`
But the search field is always before the menu, do you have a good advice?