Added a search to the Woocommerce menu with the following code:
add_filter('wp_nav_menu_items','add_search_box', 10, 2); function add_search_box($items, $args) { ob_start(); get_search_form(); $searchform = ob_get_contents(); ob_end_clean(); $items .= '<li class = "my_search">' . $searchform . '</li>'; return $items; } Everything works, searches for products, but the search results are displayed in Wordpress posts format, tell me how to make the output standard, as a list in any category of goods?