@jacobwelander
Header search given in your site is modified by theme to create auto suggestion for all products only.If you want to add search categories you have to modify code from theme file.You can also use third party plugin. Remove header search given and use below search plugin if it works for you.
https://wordpress.org/plugins/woo-autocomplete-search-bar/
If you are planning to modify theme file create child theme first and then modify your theme file.Check below link how to create child theme https://developer.wordpress.org/themes/advanced-topics/child-themes/
Hope this will help you!
thanks for helpning, but i looked at the search.php and the searchform.php.
and i cant find any way to add categories.
———————– search ———————————————–
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme
* and one of the two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* E.g., it puts together the home page when no home.php file exists.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package zonex
*/
?>
<?php get_header(); ?>
<?php
/* Blog Layout */
$zonex_blog_layout = zonex_get_option( 'zonex_blog_layout', 'right' );
/* Blog Style */
$zonex_container_class = array();
$zonex_container_class[] = 'search-page';
$zonex_content_class = array();
$zonex_content_class[] = 'main-content';
?>
<div class="<?php echo esc_attr( implode( ' ', $zonex_container_class ) ); ?>">
<div class="container">
<div class="row">
<div class="<?php echo esc_attr( implode( ' ', $zonex_content_class ) ); ?>">
<?php get_template_part( 'templates/blog/blog', 'search' ); ?>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>
————————- searchform ———————————
<?php
/**
* Template for displaying search forms
*
* @package WordPress
* @subpackage Zonex
* @since 1.0
* @version 1.0
*/
?>
<?php $unique_id = esc_attr( uniqid( 'search-form-' ) ); ?>
<form role="search" method="get" class="search-form" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<label for="<?php echo esc_attr($unique_id); ?>">
<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label', 'zonex' ); ?></span>
</label>
<input type="search" id="<?php echo esc_attr($unique_id); ?>" class="search-field" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder', 'zonex' ); ?>" value="<?php echo get_search_query(); ?>" name="s" />
<button type="submit" class="search-submit"><span class="screen-reader-text"><?php echo esc_html_x( 'Search', 'submit button', 'zonex' ); ?></span></button>
</form>
@jacobwelander
The above code only shows search form and search result screen. It will not show search query. Search query functionality must be define in some where in theme file and there must some jquery code working to while shows auto-suggestion for product.
You have to find search query code in theme folder.