Flatsome – accordion support

mgibbs189

{{gist file=”test.js” lang=”javascript”}}
<?php

// Add to your (child) theme’s functions.php
add_action( ‘wp_head’, function() {
?>
<script>
(function($) {
$(document).on(‘facetwp-loaded’, function() {
if (FWP.loaded) {
Flatsome.behaviors[‘accordion-title’].attach();
}
});
})(jQuery);
</script>
<?php
}, 100 );
{{/gist}}