# 类别旁边的图标

**URL:** <https://meta.discourse.org/t/icons-next-to-categories/287575>\
**Category:** Support\
**Tags:** category-icons\
**Created:** [2023年十二月5日 13:21 UTC](https://meta.discourse.org/t/icons-next-to-categories/287575 "2023-12-05T13:21:32Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [2023年十二月5日 14:33 UTC](https://meta.discourse.org/t/icons-next-to-categories/287575/4 "2023-12-05T14:33:40Z")

</div>

您要找的是 Font Awesome 5 图标，正如描述中所述：[Find the Perfect Icon for Your Project in Font Awesome 5 | Font Awesome](https://fontawesome.com/v5/search?o=r&m=free)

您在 `category icon list` 设置中使用的任何图标，都会添加到 `svg_icons` 中。  
例如：

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/3/1/7314d11268a57eefbbde1aec86d44c2d04c67343.png)

您看到的是：  
 ![image](https://global.discourse-cdn.com/meta/original/4X/9/5/c/95c1ac715e681c80291625ad24a7c11e99d99f7c.png)

请记住，要提供分类的 _slug_，而不是全名！  
您可以在 URL 或分类设置中看到 slug。

> [@psybox](#):
>
> 在相关分类部分（您分配图像的地方！）而不是在主题插件中添加图标，这非常奇怪。但我希望这只是您作为新用户的学习过程 🙂 文档假设您知道这些事情

我完全理解！此功能不属于核心部分，而自定义 Discourse 的一种方法是安装主题组件。本指南可能有助于您更好地理解：

> [@Beginner's guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966):
>
> This is a crash course in Discourse theme basics. The target audience is everyone who is not familiar with Discourse themes. If you’ve already used Discourse theme / theme components, this guide is probably not something you need to read. What are themes and theme components? A theme or theme component is a set of files packaged together designed to either modify Discourse visually or to add new features. Let’s start with themes. Themes In general, themes are not supposed to be compatible …

---

_[View the full topic](https://meta.discourse.org/t/icons-next-to-categories/287575)._
