Hello,
I have activated the small search box in Enfold. The search unfortunately gives very bad results. For example, if I enter “Island”, Icelandic articles will not appear in the search suggestions.
Only when I click on “See all results”, I get matching results. Here I have also installed the plugin Relevanssi. This has no effect on the preview in the search box.
Is there a solution to this problem?
best regards
Florian
Hi Florian
I just searched for “Island” on your website and search results look good to me.
What exactly is the problem or are you talking about a different website? If so please paste the link here (makes it easier to verify).
Cheers
Michael
Hi,
Thank you for using Enfold.
@michaelH: He’s probably referring to the AJAX search.
@flocco21: You can use this filter to increase the number of posts shown in the AJAX search.
add_filter('avf_ajax_search_query', 'avf_modify_ajax_search_query', 10, 1);
function avf_modify_ajax_search_query($search_parameters)
{
parse_str($search_parameters, $params);
$params['numberposts'] = 15;
$search_parameters = http_build_query($params);
return $search_parameters;
}
Default value is 5. We increased it to 15.
Best regards,
Ismael
Hi Michael,
it’s about the suggestions in the search box. If I enter in the search box “Island”, come here directly suggestions – but no one has something to do with “Island”.
When I click on “All Results”, I see the correct results.
best regads
Florian
Hi Ismael,
where can I find it?
best regards
Florian