# How to change moderator icon

**URL:** <https://meta.discourse.org/t/how-to-change-moderator-icon/356417>\
**Category:** Development\
**Created:** [March 8, 2025, 7:13pm UTC](https://meta.discourse.org/t/how-to-change-moderator-icon/356417 "2025-03-08T19:13:32Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![KeepBotting](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keepbotting/32/492515_2.png) [@KeepBotting](https://meta.discourse.org/u/KeepBotting)\
**Post date:** [March 8, 2025, 7:35pm UTC](https://meta.discourse.org/t/how-to-change-moderator-icon/356417/5 "2025-03-08T19:35:03Z")

</div>

No change when removing metadata.

However:

```plaintext
<script type="text/discourse-plugin" version="0.8">
    api.replaceIcon('shield-alt', 'mod-crown');
</script>

```

This gets it to show up but I also get a scary warning about compatibility:

 ![image](https://global.discourse-cdn.com/meta/original/4X/3/4/a/34a349b7b05a598ad565ab769914c1994068b533.png)

In the inspector I get this warning: `Deprecation notice: The icon name "shield-alt" has been updated to "shield-halved".`

And using `shield-halved` instead of `d-icon-shield-halved` works properly!

Thanks for your help 😁

---

_[View the full topic](https://meta.discourse.org/t/how-to-change-moderator-icon/356417)._
