- This topic has 1 reply, 2 voices, and was last updated 5 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Hide result shortcode until user input (ajax auto update)
Tagged: user input, ux
Yes, you would need to edit the results.php file, as indicated here (changing the ID shown to match that of your form):
global $searchandfilter;
$sf_current_query = $searchandfilter->get(11690)->current_query();
if ((!$sf_current_query->is_filtered())&&($sf_current_query->get_search_term()=="")) {
echo '<div>Nothing to see here folks!</div>';
} else {
// the current resuts.php code here (ALL the code from the if ( $query->have_posts() ) line and onwards)
}