Different results for multiple search fields on the same page

[ad_1]

Hello,

Is it possible to perform a different query on two fibosearch fields present on the same page?

In my case, I have a main search box in my navigation menu, which should search on all products in the catalog.

And a second search field, in the sidebar with search filters, which should only return products in the active category (example: /product-category/my-category/)

Can I find the ID of the field/form (example: #dgwt-wcas-search-input-2 for the search in the sidebar) and limit the search results only for that field?

Can I use the child theme’s asfw-filters.php file for this purpose? Or add the condition in the child theme’s function.php?

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer