facetwp make search filters on listify home page visible after loading

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
<?php
/**
** enable filtering on load of map
**/
add_action( ‘wp_footer’, function() {
?>
<script>
(function($) {
$(document).on(‘facetwp-loaded’, function() {
$( ‘.search-filters-home’ ).css( “visibility”, “visible” );
});
})(jQuery);
</script>
<?php
}, 100 );
{{/gist}}