# Can't add new class to topic page elements using jQuery?

**URL:** https://meta.discourse.org/t/cant-add-new-class-to-topic-page-elements-using-jquery/178568
**Category:** Development
**Created:** [February 5, 2021, 4:19pm UTC](https://meta.discourse.org/t/cant-add-new-class-to-topic-page-elements-using-jquery/178568 "2021-02-05T16:19:35Z")
**Posts on this page:** 1
**Showing post:** 12

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [February 5, 2021, 10:25pm UTC](https://meta.discourse.org/t/cant-add-new-class-to-topic-page-elements-using-jquery/178568/12 "2021-02-05T22:25:41Z")

</div>

Ok, this is now a Theme Component:

[https://github.com/merefield/discourse-tc-staff-icons](https://github.com/merefield/discourse-tc-staff-icons)

([Installing a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682))

Admin role takes precendence - by default a crown will show for an admin who also has moderator role.

You can now configure the icon by staff type.

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/d/2d45d833a81f10ce1280b16166276d6e44e4ff7e.png)

Just make sure you add the icon names to the svg icon subset setting (or it won’t show):

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/3/b3b699ecd86a63873016a4dd69a7f0ce70ff6bf6.png)

Customize your title text here:

 ![image](https://global.discourse-cdn.com/meta/original/3X/5/4/546c4a86772df0b2391d58453fa35ff9feb0e5e4.png)

similarly for the moderator.

---

_[View the full topic](https://meta.discourse.org/t/cant-add-new-class-to-topic-page-elements-using-jquery/178568)._
