Hello,
The number of topics beside categories in category dropdown is not showing up.
I even tried changing the category style but it doesn’t work. Is there any setting that I need to change?
Regards
Hello,
The number of topics beside categories in category dropdown is not showing up.
I even tried changing the category style but it doesn’t work. Is there any setting that I need to change?
Regards
I can’t think of any reason the counts would not be appearing. Likely something in your local site CSS is hiding it? Use f12 to examine the HTML elements and see.
@codinghorror I used Inspect Element and found that the HTML element for topic count is totally missing.
These are my site’s elements:
I compared it to this community’s elements and found this extra one that my site is missing:
What could be the reason?
We really can’t think of any reason this would happen. Are you using any third-party plugins?
Any response? Anyone?
I was facing the same situation in my instance, the issue being the category icons theme component, as it replaces the default renderer with the custom one that shows the icon beside the category name.
I’ve just submitted a pull request that fixes it by mirroring the default renderer’s way of showing the topic count and I installed my fork of the theme component https://github.com/renato/discourse-category-icons in my instance to restore the default behavior while/if the pull request isn’t accepted.
@renato thanks for the clarification. Should I just update the Category Icons theme component after the pull request is approved, or do I need to install your fork for that?
PS: I’m not very good with these techincal terms
If you can wait, the safest path is updating the theme component once the change is approved
Thank you
Thanks for the PR @renato, it works great and is now merged.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.