Forums Forums Search & Filter Pro Customizing "Display Count"

Viewing 3 posts - 1 through 3 (of 3 total)
  • Anonymous
    #13035

    Hi,
    Is there any way to get rid of the parenthesis around the numerican count, next to the search term?
    Since the count is in a <span> I don’t think the ::first-letter ::last-letter css would work to hide those characters.

    Thanks in advance!
    Jenny

    Ross Moderator
    #13037

    Hey Jennifer – I’m afraid not – its hardcoded in… I’ll consider making this optional in a future update.

    Thanks

    Anonymous
    #198847

    Hi there, a bit late but this is what’s working for me :

    $('span.sf-count').text(function(_, text) {
    	return text.replace(/\(|\)/g, '');
    });
    
    $(document).on("sf:ajaxformfinish", ".searchandfilter", function(){
    	$('span.sf-count').text(function(_, text) {
    		return text.replace(/\(|\)/g, '');
    	});
    });

    Hope this can help. Cheers.

Viewing 3 posts - 1 through 3 (of 3 total)