FacetWP + Flatsome toggle sidebar

mgibbs189

{{gist file=”functions.php” lang=”php”}}
function fwp_toggle_sidebar() {
?>
<script>
(function($) {
$(document).on(‘facetwp-loaded’, function() {
$(‘.mfp-container’).click();
});
})(jQuery);
</script>
<?php
}
add_action( ‘wp_head’, ‘fwp_toggle_sidebar’, 100 );
{{/gist}}