<?php
// Add to your (child) theme's functions.php
add_action( 'wp_head', function() {
?>
<script>
(function($) {
$(document).on('facetwp-loaded', function() {
var facets_in_use = ('' != FWP.buildQueryString());
// see https://api.jquery.com/toggle/
// TRUE to show, FALSE to hide
$('.btn-reset').toggle(facets_in_use);
});
})(jQuery);
</script>
<?php
}, 100 );