Hi there,
You can add a search field to the navigation by adding a new “Hook” element in “Appearance > Elements”.
In the hook content field, add this:
<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 the hook settings, set it to the inside_navigation hook, and execute PHP: http://prntscr.com/l6i2nw
Then add this CSS:
.inside-navigation .search-form {
float: right;
line-height: 60px; /* height of your navigation */
}
.main-navigation .search-submit {
font-family: GeneratePress;
}
Let me know if you need more info 🙂