Hi there,
1) I am using Enfold Knowledgebase template and I would like to know if there is a way to change the thumbnail size of the AJAX results. Right now the thumbnail that is being generated is 80×80. I would like to get a 200×200.
2) I am using the Relevanssi plugin to improve the accuracy of the results. and I noticed that the maximum number of the results can be too long sometimes. Is there a way to limit the number of results that the AJAX search returns?
Hey Manos,
Thank you for the inquiry.
1.) This is possible but you have to modify the avia_ajax_search function in the functions-enfold.php file and adjust the thumbnail manually. Look for this code around line 396.
$image = get_the_post_thumbnail( $post->ID, 'thumbnail' );
2.) You can use the avf_ajax_search_query filter to adjust the number of posts in the search results container.
add_filter("avf_ajax_search_query", function($query) {
parse_str($query, $parameters);
$parameters["numberposts"] = 2;
return http_build_query( $parameters );
}, 10, 1);
Best regards,
Ismael