facetwp add text to selections

djrmom

{{gist file=”custom-hooks.php” lang=”php”}}
add_action( ‘wp_head’, function() { ?>
<script>
(function($) {
$(function() {
FWP.hooks.addAction(‘facetwp/loaded’, function() {
$( ‘<div class=”you-selected”>You selected: </div>’ ).insertBefore( “.facetwp-selections ul” );
}, 100 );
});
})(jQuery);
</script>
<?php }, 100 );
{{/gist}}