- This topic has 1 reply, 2 voices, and was last updated 10 years, 9 months ago by .
Viewing 2 posts – 1 through 2 (of 2 total)
Viewing 2 posts – 1 through 2 (of 2 total)
Posted
by
Forums › Forums › Search & Filter Pro › Possibility to modify the search directly?
Hey Alessandro
There is no built in way, but with some customisation your should be able to achieve what you need.
Check the Ajax events here (first question):
http://www.designsandcode.com/wordpress-plugins/search-filter-pro/faqs/
So, you would need to detect ajax finishing loading, and then you would need some JS to add focus to the search box again – so something like (untested):
//detects when the ajax request has finished and the content has been updated
// - add scripts that apply to your results here
$(document).on("sf:ajaxfinish", ".searchandfilter", function(){
//focus the search box
$('.searchandfilter input[type="text"]').focus();
});
Thanks