Customizing "Display Count"

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)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.