Forums Forums Search & Filter Pro visibility of reset button

Tagged: 

Viewing 1 post (of 1 total)
  • Trevor
    #105034

    Hi

    You could use PHP to see if the results are filtered, like this (change the ID number for yours):

    global $searchandfilter;
    $sf_current_query = $searchandfilter->get(1234)->current_query();
    if (($sf_current_query->is_filtered())||($sf_current_query->get_search_term()!="")) {
      // do something that identifies a search has been made (set some CSS, ...)
    }
    // your normal template code here
    
Viewing 1 post (of 1 total)