Archived topic
Search bar Autocomplete
10 replies · Started by Fibercom on February 15, 2019
Hi
Which plugin could be good for have "autocomplete" in the search bar, please? O what can I do (code, etc)?
Thanks!
Hi there,
not tested but this one gets a lot of good reviews and the support looks to be proactive:
Thanks! I downloaded and configure it. It comes with a shortcode. I use Search Bar directly from Generate Press theme. I activate "replace search theme" but it seems no works. How could I make to change the search to Ajax Search Lite plugin, please?
Thanks in advanced!
Hi there,
Are you wanting to add it to the navigation search? If so, you might need to ask their support if it's possible to integrate the plugin with a custom search field (without using their shortcode).
They told me that:
"If the automatic replacement does not work, then the theme search is probably not using the get_search_form method to print the search bar. In that case, it is unfortunately impossible to automatically change the search box."
Generate Press uses get search form method? And if not, which plugin for autocomplete the search I can use that works good with Generate Press, please.
Thanks!
The search in the navigation uses a custom element: https://github.com/tomusborne/generatepress/blob/2.2.2/inc/structure/navigation.php#L253
If it's possible to manually integrate their plugin into the form, we can filter the HTML output to integrate it.
If not, I don't believe it's possible to integrate it into the navigation search. We could insert a regular search form into the navigation, but it wouldn't look the same.
From experience I can say that this plugin makes a lot of database queries and therefore the the website could slow down.
Good alternatives would be:
https://wordpress.org/plugins/daves-wordpress-live-search/
or
Thanks for sharing your knowledge and alternatives Ender.
Thanks to all and to Ender in particular. Dave's WordPress Live Search works really really good!
Thats great to hear. I am sure others will find this very useful. Thanks again Ender
SearchWP Live Ajax Search works in a normal search box but does not seem to work in the navigation bar search.
Dave's Live Search does work in the navigation bar search without much setup.
It hasn't been updated for quite a long time and the default CSS isn't very pretty but it does work straight out of the box.
If you have a problem with it where the results are not showing under the search box but at the bottom of the page then go to the settings (Live Search under Settings menu in WP admin), hit the appearance tab and select one of the style options. Sometimes it doesn't seem to load any CSS at all unless you do this.