FacetWP – hide checkbox toggles

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

function fwp_hide_toggles() {
?>
<script>
(function($) {
$(function() {
wp.hooks.addFilter(‘facetwp/checkboxes/show_toggles’, function(ret) {
return false;
});
});
})(jQuery);
</script>
<style>
.facetwp-type-checkboxes .facetwp-depth {
display: inherit !important;
}
</style>
<?php
}
add_action( ‘wp_head’, ‘fwp_hide_toggles’, 100 );
{{/gist}}