How to change stats display on 'about' page?

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?

1 Like

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.

3 Likes

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?

7 Likes

Why do you need to? Just hover your mouse over to see the actual number, this is always the case in the Discourse UI:

1 Like

Thanks for all the replies

This topic was automatically closed after 2571 days. New replies are no longer allowed.