How can I add a reset button to the filters from the listings archive?

If you want to give your vis­i­tors the option to reset all the fil­ters applied to the list­ings archive, you need to fol­low these sim­ple steps:

  1. Install the My Cus­tom Func­tions plu­g­in;
  2. Go to Dash­board → Set­tings → PHP Insert­er;
  3. Press the ON but­ton on the right cor­ner of the text field;
  4. Paste this code:
    add_action('job_manager_job_filters_search_jobs_end', function() {
    ?><button class="btn reset" onclick="FWP.reset()">Reset</button><?php
  5. Hit the Save changes but­ton.

This article applies to Listable, as they share the same underlying structure.

Updated on July 3, 2018

Was this article helpful?