jenny-r
12/13/2018 - 6:14 PM

facetwp add text to selections

facetwp add text to selections

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 );