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

If you want to give your visitors the option to reset all the filters applied to the listings archive, you need to follow these simple steps:

  1. Install the My Custom Functions plugin;
  2. Go to Dashboard → Settings → PHP Inserter;
  3. Press the ON button on the right corner 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 button.
Updated on August 25, 2020

Can't find what you’re looking for? Ask a human.

We're a small team of real people providing real help. Send us an email at [email protected] and we will give you a helping hand.