Forums › Forums › Search & Filter Pro › Removing Parentheses
Tagged: counts
- This topic has 4 replies, 2 voices, and was last updated 6 years, 6 months ago by Anonymous.
-
Anonymous(Private) May 7, 2018 at 10:13 pm #176220
Great plugin. Great support. (You just solved the last case I posted 🙂
This question is waaay more petty.
I’ve been happily styling the filters and results. Tiny detail: I’d prefer not to have parentheses around the count that accompanies each filter term. Any advice for making that happen?
Thanks again for your help!
Trevor(Private) May 8, 2018 at 1:06 pm #176354They are hard coded into our core PHP, so it would be inadvisable to try to remove them, as any plugin update would re-instate them. The only thing I can think of is that you could write some custom javascript to manipulate the text strings in the fields in question. Not an easy task, and outside our support remit.
Trevor(Private) May 10, 2018 at 8:34 pm #176924Ross (the developer) just pointed out to me that we have a filter you could use.
D’oh.
See this Gist:
https://gist.github.com/rmorse/7b59b45a14b1ca179868
See the part around line 33 tests if it has options. You could use PHP to search and replace the two brackets. So we run a loop thought the options, starting like this:
foreach($input_object['options'] as $option) {
-
AuthorPosts