# 为新用户默认隐藏侧边栏？

**URL:** https://meta.discourse.org/t/hiding-the-sidebar-by-default-for-new-users/315545
**Category:** Support
**Tags:** sidebar
**Created:** [2023年三月24日 17:14 UTC](https://meta.discourse.org/t/hiding-the-sidebar-by-default-for-new-users/315545 "2023-03-24T17:14:08Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [2023年三月24日 17:20 UTC](https://meta.discourse.org/t/hiding-the-sidebar-by-default-for-new-users/315545/2 "2023-03-24T17:20:07Z")

</div>

存在一个 #Customization > Theme component 可以隐藏未登录用户的侧边栏

> [@隐藏来自匿名用户的侧边栏](https://meta.discourse.org/t/hide-sidebar-from-anon-users/250351?u=moin):
>
> 此 TC 已弃用，请使用： ||| |-|-|-| | information_source | 摘要 | 隐藏匿名用户的 #sidebar。如果您有一个大部分是私有但只有少量内容公开可见的网站，这将非常有用。 | hammer_and_wrench|代码库| [GitHub - nathan-nz/discourse-hide-sidebar-from-anon: Hides the sidebar from anonymous users](http://github.com/nathan-nz/discourse-hide-sidebar-from-anon) | | question|安装指南|[如何安装主题或主题组件](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682)| | open_book|刚接触 Discourse 主题？| [使用 Discourse 主题的入门指南](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) 安装此主题组件 这个简单的主题组件通过隐藏 #sidebar 来为匿名用户提供更简洁的体验，添加了 CSS。 如果您（像我们一样）有一个以私有为主，只有一两个分类设置为 everyone（因此暴露在互联网上）的网站，您可能会这样做。这意味着随意访问者会看到一个与他们看到的内容量相符的非常简单的界面，而登录用户则获得完整的体验。 这是根据 @D…

---

_[View the full topic](https://meta.discourse.org/t/hiding-the-sidebar-by-default-for-new-users/315545)._
