- This topic has 12 replies, 4 voices, and was last updated 4 years, 12 months ago by
Elvin.
-
AuthorPosts
-
March 29, 2021 at 3:20 am #1713730
Jatin
I want to customize the search bar. Is there any native way of doing the same.
Customization required but not limited to:
1) Customization of the Search bar
2) Include a click button for search instead of typing query and pressing enter on the keyboard.
3) shows the posts in the drop down while someone is trying to search from the search box. There is a theme call KnowAll provides a search box on which while someone is typing it searches and displays it in drop down.Please try to search in the Example Search box i have provided in the Private box. It searches within my posts instantly and displays the results in drop down. How to achieve similar using GP Premium.
Thanks,
March 29, 2021 at 5:29 am #1713865David
StaffCustomer SupportHi there,
you would need an Ajax Search plugin like this one:
March 29, 2021 at 6:10 am #1713926Jatin
Is this the best coded plugin. I do not want to slow down the site but some best coded ones if you can suggest?
March 29, 2021 at 6:25 am #1713948David
StaffCustomer SupportUnfortunately i cannot say – i have never used an Ajax search for anything other than a Woocommerce site … but any Ajax plugin is going to add overhead as they have to search the database on keystroke for matching posts, and then render that output.
March 29, 2021 at 6:27 am #1713953Jatin
Thanks, In that case i will stick to the Native Search. The search which GP uses, is it WP Search. If yes, then can you please advise how to style it. I will stay away from Ajax plugin for now as i do not want to compromise with speed.
March 29, 2021 at 7:36 am #1714297David
StaffCustomer SupportYes, the GP Navigation search just uses the WP search form.
How do you want to style it?March 31, 2021 at 7:59 am #1716814Jatin
Ok I have added Ajax Search on my site now. Is it possible to replace the header search button with Ajax search. I am using the plugin you suggested.
Please check on my site, Currently its in the sidebar.
March 31, 2021 at 9:51 am #1716929Leo
StaffCustomer SupportSo you would like to place the Ajax search field in the header/navigation?
Where would you like to place it?
The same place as the navigation search icon?
April 1, 2021 at 10:17 am #1718255Jatin
Yes, how to swap?
April 1, 2021 at 6:23 pm #1718493Elvin
StaffCustomer SupportHi there,
Try Tom’s code here:
https://generatepress.com/forums/topic/replace-gp-search/#post-1272331Replace
[your-shortcode]with the shortcode for Ajax search.April 3, 2021 at 4:42 am #1719884Jatin
It worked by replacing the search with Ajax but then search didn’t work properly so i had to remove the navigation search completely.
Is it possible to have search box for Ajax place after the social icon. Not search Icon but search box as we normally can have in the sidebar, it will be good if ajax search box can be placed in the header itself.
April 3, 2021 at 4:45 am #1719889Jatin
Second thought is to ignore my last comment. I have placed the search in my side bar. No further action needed for now. Thanks.
April 4, 2021 at 3:02 pm #1721400Elvin
StaffCustomer SupportNo problem. Glad you got it sorted out. 😀
-
AuthorPosts
- You must be logged in to reply to this topic.