FacetWP – turn off URL hash functionality

mgibbs189

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

// Add to your (child) theme’s functions.php file

add_action( ‘wp_head’, function() {
?>
<script>
(function($) {
$(document).on(‘facetwp-refresh’, function() {
if (! FWP.loaded) {
FWP.set_hash = function() { /* empty */ }
}
});
})(jQuery);
</script>
<?php
}, 100 );

{{/gist}}