# 切换到单一类别风格的站点设置

**URL:** <https://meta.discourse.org/t/moving-to-a-single-category-style-site-setting/282441>\
**Category:** Announcements\
**Created:** [2023年十月16日 20:53 UTC](https://meta.discourse.org/t/moving-to-a-single-category-style-site-setting/282441 "2023-10-16T20:53:56Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [2023年十月16日 20:53 UTC](https://meta.discourse.org/t/moving-to-a-single-category-style-site-setting/282441/1 "2023-10-16T20:53:56Z")

</div>

_ℹ Discourse 更新于 2023-11-13T05:00:00Z 或之后将包含此更改。_

为了统一用户界面中类别的样式（例如在侧边栏中，或在聊天或帖子中提及类别时），我们将从 `category_style` 站点设置中移除非默认的类别样式，并最终完全移除此设置。

> ℹ 对于已经在使用默认（项目符号）类别样式的用户，无需采取任何操作。

对于正在使用非默认（项目符号）类别以外的用户，我们有一个新的[主题组件](https://github.com/discourse/discourse-category-badge-styles)，您可以立即安全地安装。通过这样做，即使我们最终在 3.2 正式版发布之前移除此核心设置，您的站点也将继续使用您现有的类别样式设置。

如果您不特别喜欢非默认的类别样式，我们鼓励您切换回默认（项目符号）样式，以避免在您的站点上需要额外的 \<$\>主题组件\</\>。方法如下：

> 无需安装任何内容即可切换回默认的项目符号样式。
> 
> 查找 `category_style` 管理员设置，并将其更改为“bullet”，使其看起来像这样：
> 
> ![Screenshot 2023-11-09 at 6.38.11 AM](https://global.discourse-cdn.com/meta/original/4X/5/f/7/5f7a44eb2a14e914edf95c20eb47d276e06be813.png)
> 
> 以下是步骤：
> 
> 1. 前往您站点的 `/admin`
> 2. 从菜单中选择 SETTINGS
> 3. 搜索“category style”
> 4. 选择“category style”下拉菜单，然后选择“bullet”（或选择 RESET 以将其改回默认值，即 bullet）
> 
> 完成上述操作后，您将在显示类别的所有位置看到项目符号样式。

很快，对于所有未使用默认类别样式的站点，管理仪表板上将出现一个通知，告知它们需要安装 [Category Badge Styles](https://meta.discourse.org/t/category-badge-styles/285320) 主题组件。

安装主题组件后，请选择您希望继续使用的现有类别样式。请注意，此处所做的任何选择在类别样式设置从核心移除之前都不会生效。此措施是为了确保无缝过渡。

 ![CleanShot 2023-10-16 at 13.34.02@2x](https://global.discourse-cdn.com/meta/original/4X/d/6/d/d6d86dab2d94e2a52f51d4f17d082a79b2a00896.png)

---

_[View the full topic](https://meta.discourse.org/t/moving-to-a-single-category-style-site-setting/282441)._
