FacetWP – remove space before counter

mgibbs189

{{gist file=”functions.php” lang=”php”}}
<?php

add_filter( ‘facetwp_facet_html’, function( $output, $params ) {
$output = str_replace( ‘ <span class=”facetwp-counter”>’, ‘<span class=”facetwp-counter”>’, $output );
return $output;
}, 10, 2 );
{{/gist}}