隐藏站点统计

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 个赞

我知道有几个网站设法将 section.about.stats 完全隐藏在页面源代码之外,但 site/statistics.json 仍然显示了这些统计数据。

1 个赞