隐藏站点统计

Hi friends
Does someone know how to hide all the site stats for all the users? like here in discourse under the menu and about :slight_smile:

3 个赞

You can hide it via CSS. Admin → Customize → Theme → Edit CSS

Add this:

section.about.stats { display: none; }

6 个赞

Thank you for the solution I will probably use it!
So there is no option under settings to turn it off…

1.Does someone knows why the default in discourse to show users the stats about the community? maybe if I leave it, it will urge users to log in and use the platform?
2. Does the display:noe solution still leave the info behind the scenes so one who knows code can see the stats?

1 个赞

Yes, that info is left behind the scenes - and one can easily look behind the scenes by visiting /site/statistics.json.

3 个赞

I know of several sites that have managed to hide section.about.stats entirely from the page source, but site/statistics.json still shows the stats.

1 个赞