This post is very helpful for the wordpress developer whose want to generate the
: custom search widget with ajax : for displaying the search results.
No need for any plugin, only just download the code and use in theme.
AJAX is very popular technology and by using of it, we can improve our website resource.Now here I ‘m displaying about the custom widget which gives the suggestion of search result via AJAX.
How to Use
You need to follow only two steps .
1: Download the code : Download code
2: Past this code in theme (Active Theme) and enter the one line in file : functions.php :
require get_template_directory() . '/ajax-search-widget/ajax-search-widget.php';
After that you can get the widget in admin dashboard in location : Appearence -> widget (name -Heycodetech AJAX Search Widget )
WP Ajax Search Widget is a replacement for the standard search widget and user can get the search result instantly.
Where you will get the widget
When you will past downloaded code on file : functions.php : then it will build a new widget named : Heycodetech AJAX Search Widget : and you can use this widget easily.
Appearence -> widget (name -Heycodetech AJAX Search Widget )
For more information about the widget’s see the ” Related posts ” section on below .