Searchbox in header of theshop

Hello people,

Is there a (easy) way to get a product search box in the header section of the pages ?

regards,

Hello Peter460,

You can try to use Bop Search Box Item Type For Nav Menus plugin:

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

Try to add this code to functions.php

  • Search
    */

add_filter(‘wp_nav_menu_items’,‘add_search_box_to_menu’, 10, 2);
function add_search_box_to_menu( $items, $args ) {
if( $args->theme_location == ‘primary’ )
return $items.get_search_form();

return $items;

}