In the default category widget, when you check the “show posts count” checkbox, the number of posts appear surrounded by parentheses, how to remove them.
Leave a Reply
You must be logged in to post a comment.
In the default category widget, when you check the “show posts count” checkbox, the number of posts appear surrounded by parentheses, how to remove them.
You must be logged in to post a comment.
Add this code to your functions.php file and it will remove the parentheses and surround the post count with a span with a class to easily style it.
++Bonus
In the archive widget, if you checked “Show posts count” checkbox you’ll see the same parentheses around posts count, here’s another filter to remove them and add a class to easily style theme.