Tagged: Ajax search Pro
-
AuthorPosts
-
June 29, 2020 at 1:53 pm #1226430
Hi,
I downloaded and installed the Ajax Search Pro feature and i want to use it in my header. At the moment, i enabled the search icon in the main menu. When someone is clicking on the icon, i want them to use Ajax Search Pro instead of the ”normal” Ajax plugin. How can i fix this?
July 1, 2020 at 11:04 am #1227216Hey phouthuijzen,
Thank you for the inquiry.
This is possible but we can’t find the function that does the search query for the plugin. You may need to ask the plugin author for it because we have to use it to replace the default get_posts function in the theme’s AJAX search.
Usage example of the avf_ajax_search_function filter can be found in the following documentation but only snippets for Relevanssi and SearchWP are available at the moment.
Best regards,
IsmaelJuly 1, 2020 at 1:29 pm #1227243Hi Ismael,
Thank you for the response. I think I found the necessary codes here: https://knowledgebase.ajaxsearchpro.com/hooks/filters/asp_query_args.
Do you think this is the right code?Can you give me the right code with above functions? And where should I implement that code?
I hope you can help me out!
Best Regards,
July 1, 2020 at 3:59 pm #1227271Hi Ismael,
When i tried the search bar at a single page, the plugin does work fine. But when i will open it in the menu (header), it don’t open Ajax Search Pro, but the ”normal” Ajax Search. I found this earlier: https://kriesi.at/support/topic/problem-with-ajax-search-pro/
Unfortunately, when i upload this code in my functions.php, it doesn’t work.
Please, help me out!
Best Regards,
July 5, 2020 at 10:03 pm #1228095Hi,
Did you set jQuery to load in the footer in the Enfold > Performance panel? Try to disable that option first, then add the script again in the functions.php file. Please don’t forget to remove the browser cache prior to testing.
Best regards,
IsmaelJuly 6, 2020 at 1:41 pm #1228285Hi Ismael,
Unfortunately, it doesn’t work. Do you have another solution so that we can use ajax search pro in the header instead of the standard search function?
Best Regards
July 10, 2020 at 9:38 am #1229353Hi,
Thank you for the update.
We might have to ask the plugin author for the function that the plugin used to query the posts — for Relevanssi the function is called relevanssi_do_query and for SearchWP it’s the search method inside the SearchWP class. The plugin probably has the same function, but we are not familiar with its code, so this might take a while. Asking the plugin author in this regard will help.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.