Hi there.
I’d like to show exact stats on our ‘about’ page, that is not ‘3.2k’ but exact number.
How can I achieve this?
AI-generated summary
MakaryGo wants to display exact statistics on the ‘about’ page instead of rounded numbers. GlitchMr suggested modifying the /app/assets/javascripts/discourse/templates/about.hbs template to remove number formatting. Alternatively, GlitchMr and codinghorror pointed out that exact numbers can already be seen by hovering over the numbers. dax provided a CSS solution to display exact numbers and shared a relevant thread: How do I make the about page show exact post counts?
The part of code that is responsible for rounding the number is a template, to be exact /app/assets/javascripts/discourse/templates/about.hbs. In this file, you can get rid of number formatting.
However, please note that you can already see accurate numbers by hovering over a number.
I can’t find the thread now, but @Mittineague shared few months ago some CSS to display the exact numbers in the About page
section.about.stats span.number[title] {
color: #FFF;
}
section.about.stats span.number[title]::before {
content: attr(title);
color: #000;
}
EDIT: found How do I make the about page show exact post counts?
Thanks for all the replies
