# 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:** 3

<div class="post-metadata">

**Author:** ![cosdesign](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cosdesign/32/208585_2.png) [@cosdesign](https://meta.discourse.org/u/cosdesign)\
**Post date:** [February 5, 2021, 8:13pm UTC](https://meta.discourse.org/t/cant-add-new-class-to-topic-page-elements-using-jquery/178568/3 "2021-02-05T20:13:32Z")

</div>

Thanks for your help. Not the actual forum title I’m looking for but to display a title on hover on this little crown icon I made ( visible only for admins ):

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

Btw the CSS code for this is:

```
.names span.admin a::after {
content: "";
width: 17px;
height: 14px;
margin-left: 5px;
background-image: url(https://www.dropbox.com/s/0oi0y3ex3rtfvk5/cd-crown.svg?raw=1);
background-repeat: none;
display: inline-block;
position: relative;

```

---

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