Different results for multiple search fields on the same page
-
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?
- The topic ‘Different results for multiple search fields on the same page’ is closed to new replies.