Hi team,
I just bought your amazing plugin and started using it to create a custom search page and I have two questions if you please.
1- how can I create just a search box and attach it to my home page with an auto-complete option or if I can connect your search page with Ivory search (I used it on my home page)
2- Is there any chance I can replace the page I've created with the default WordPress search result page?
Hello and thank you for contacting the Toolset support.
I'll try to answer each of your questions bellow. Although, to better assist you, I'll need to know if you want to build this with the blocks editor or the legacy editor?
I'll also need to know if you are talking about the default WordPress search, or if you are talking about a Toolset view with a search form.
For the default WordPress search, Toolset does not offer a search form, you must use the default WordPress search(provided by the theme). And it will always take you to the default search page, which is usually the homepage with a query parameter ?s={search keywords}.
Toolset allows you to customize the display of the default search results, through an archive template.
I highly recommend that you read our glossary page to distinguish between the different Toolset elements/terms/concepts https://toolset.com/glossary/
1- how can I create just a search box and attach it to my home page with an auto-complete option or if I can connect your search page with Ivory search (I used it on my home page)
We can compose this question into 3 simpler questions:
- how can I create just a search box and attach it to my home? Yes and No. It is possible only for views. It is not possible for archive templates. The trick is to build the view in the homepage, then display only its search form wherever you want. Based on what editor you use, the method will be different.
- Wan we have an auto-complete option? This is not possible out of the box, but it can be implemented using some custom code(Javascript for the autocomplete UI, PHP for an AJAX/REST handler to return relevant option based on user input).
- Can we can connect your search page with Ivory search? There is no existing integration with the Ivory search plugin. We have currently an integration with the Relevanssi plugin, you can read more about it here https://toolset.com/course-lesson/searching-texts-in-custom-fields-with-toolset-and-relevanssi/
It would be possible to integrate Ivory search with Toolset. But that may need custom code. Toolset relies only on the default WordPress APIs, such as WP_Query, etc.
2- Is there any chance I can replace the page I've created with the default WordPress search result page?
I am not sure to understand this question. However, if you are talking about how the results are displayed, you can customize it through an archive template that is assigned to the default WordPress search. Check this article https://toolset.com/course-lesson/creating-a-custom-search/
I hope this answers somehow your questions and gives you some insights about Toolset. Let me know if you have any follow-up questions.