# 替换AI机器人头部图标

**URL:** https://meta.discourse.org/t/replace-ai-robot-header-icon/329497
**Category:** Support
**Tags:** ai, ai-bot
**Created:** [2024年十月5日 10:00 UTC](https://meta.discourse.org/t/replace-ai-robot-header-icon/329497 "2024-10-05T10:00:19Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2024年十月5日 20:11 UTC](https://meta.discourse.org/t/replace-ai-robot-header-icon/329497/3 "2024-10-05T20:11:14Z")

</div>

我将此用于论坛主题组件的 `head_tag` 中

```js
<script type="text/discourse-plugin" version="0.8">  
  api.replaceIcon('robot', 'rocket');
</script>

```

 ![Screenshot 2024-10-05 at 1.10.24 PM](https://global.discourse-cdn.com/meta/original/4X/3/f/9/3f998a802ba52599ba16a6455d73d1af46bd326f.png)

可能需要将其加载到管理员的图标设置中 - `svg icon subset`

 ![Screenshot 2024-10-05 at 1.13.15 PM](https://global.discourse-cdn.com/meta/original/4X/e/2/d/e2d6cd4168b4918a3570987cb4b8cff3617b094f.png)

我们也正在使用 fontawesome 6

> [@We're upgrading our icons to Font Awesome 6!](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349):
>
> What’s Font Awesome? Discourse uses a free set of icons from [Font Awesome](https://fontawesome.com/) throughout its interface. You see these on toolbars, badges, buttons, etc… here’s our composer toolbar: [image] Since 2018 we’ve been using Font Awesome 5 ([original announcement](https://meta.discourse.org/t/introducing-font-awesome-5-and-svg-icons/101643)), and in the meantime Font Awesome 6 has been released. Version 6 includes new icons, some general style updates, and renames. As of today, Discourse will start using version 6 too! Specifically, [version 6.6.0](https://fontawesome.com/versions). This isn’t an enormous visual ch…

* * *

编辑：这需要[为新模板更新](https://meta.discourse.org/t/modernizing-inline-script-tags-for-templates-js-api/366482#p-1775290-converting-script-typetextdiscourse-plugin-3)

---

_[View the full topic](https://meta.discourse.org/t/replace-ai-robot-header-icon/329497)._
