# 如何在列表页的类别名称前显示类别图片？

**URL:** <https://meta.discourse.org/t/how-to-show-category-image-before-category-name-on-listing-pages/223390>\
**Category:** Support\
**Created:** [2022年四月5日 18:56 UTC](https://meta.discourse.org/t/how-to-show-category-image-before-category-name-on-listing-pages/223390 "2022-04-05T18:56:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)\
**Post date:** [2022年四月5日 19:42 UTC](https://meta.discourse.org/t/how-to-show-category-image-before-category-name-on-listing-pages/223390/2 "2022-04-05T19:42:30Z")

</div>

它不显示缩略图，但有一个主题组件可以显示图标：

> [@Category Icons](https://meta.discourse.org/t/category-icons-component/104683?u=maiki):
>
> warning This theme component is deprecated and should no longer be used. Its features are now in Discourse Core (see: [Bringing popular features to Discourse](https://meta.discourse.org/t/bringing-popular-features-to-discourse-header-search-welcome-banner-and-category-icons-emoji/359169)). For private category icon customization, refer to [this topic](https://meta.discourse.org/t/new-aliases-for-replacing-lock-icons-on-closed-topics-and-restricted-categories/373778). discourse2Summary Category Icons allows category badge links to have icons next to the category name.eyeglassesPreview [Preview on Discourse Theme Creator](https://discourse.theme-creator.io/theme/Discourse/category-icons)hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-category-icons](https://github.com/discourse/discourse-category-icons) …

该主题有一个漂亮的安装模态框，可以帮助你在你的网站上安装它，非常酷！🙂

 ![Screenshot 2022-04-05 at 12-36-00 Sandbox Discourse Kit - sdk](https://global.discourse-cdn.com/meta/original/3X/c/0/c06027be5e61e6bd460dbb8b9b26b17fb4c82f21.png)

 ![Screenshot 2022-04-05 at 12-38-21 Latest topics - Sandbox Discourse Kit](https://global.discourse-cdn.com/meta/original/3X/0/1/01f60de8204d754fdb92c5df797f4ea042ee9e0e.png)

确保将 `category style` 设置为“bullet”以外的选项，这样更改才会生效。🙂

---

_[View the full topic](https://meta.discourse.org/t/how-to-show-category-image-before-category-name-on-listing-pages/223390)._
