FacetWP – use the selections box text as the header

mgibbs189

{{gist file=”test.js” lang=”javascript”}}
(function($) {
$(document).on(‘facetwp-loaded’, function() {
var label = $(‘.facetwp-selections li[data-facet=”workspace”]’).html();
$(‘.my-header’).html(label);
});
})(jQuery);
{{/gist}}