# How to create a tag "🎥"?

**URL:** https://meta.discourse.org/t/how-to-create-a-tag/337534
**Category:** Support
**Tags:** tags
**Created:** [November 21, 2024, 4:05pm UTC](https://meta.discourse.org/t/how-to-create-a-tag/337534 "2024-11-21T16:05:32Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [November 21, 2024, 4:05pm UTC](https://meta.discourse.org/t/how-to-create-a-tag/337534/1 "2024-11-21T16:05:33Z")

</div>

I would like to learn how to create a tag with `name="🎥"`.

If I try to to add such a tag via interface it is removed immediately.

If I create and assign the tag via rails console, it will be shown and can be selected by clicking but it will not be included in any tag search or selector.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [November 21, 2024, 4:09pm UTC](https://meta.discourse.org/t/how-to-create-a-tag/337534/2 "2024-11-21T16:09:05Z")

</div>

Maybe have a look at this topic?

> [@Emoji in tag names](https://meta.discourse.org/t/emoji-in-tag-names/44555):
>
> I’m creating a multi-language forum, there will be people from different nationalities on it. I’m thinking of using tags for showing in which language is a topic. I thought it would be more visual to use emoji to display a flag, but tags do not seem to display the emoji’s image. Instead, the name of the emoji is displayed. Topic’s title handle the emoji well, why should’t tags do the same ?

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [November 21, 2024, 4:23pm UTC](https://meta.discourse.org/t/how-to-create-a-tag/337534/3 "2024-11-21T16:23:51Z")

</div>

Hm. I still don’t understand the problem after having read the topic.

If I choose “🎥movie” then I’m able to search and assign the tag via UI.

So it seems that emojis are stripped in searches and a pure emoji string therefore is not a valid search term?

My conjecture is that the translation of emojis into their Markdown equivalent is also a contributing factor.

Are there any downsides to use emojis in tag names, which would favor emoji-free tag names decorated with [Tag Icons](https://meta.discourse.org/t/tag-icons/109757) in the UI?

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [November 21, 2024, 4:31pm UTC](https://meta.discourse.org/t/how-to-create-a-tag/337534/4 "2024-11-21T16:31:55Z")

</div>

What you’re trying to do will currently taking some hacking - there is no straightforward way to do it.

I think there is a legit feature request in here - to allow tags to be configured with an emoji and also to allow determining whether both tag text and tag emoji are displayed, or just tag emoji.

There is a theme component for allowing tags to get icons, but there is no way currently to suppress the tag text. Maybe this could be added to the component as an an option?

> [@Tag Icons](https://meta.discourse.org/t/tag-icons/109757):
>
> discourse2Summary Tag Icons allows tags to have an icon next to the tag label.eyeglassesPreview [Preview on Discourse Theme Creator](https://discourse.theme-creator.io/theme/Discourse/tag-icons)hammer_and_wrenchRepository Link [https://github.com/discourse/discourse-tag-icons](https://github.com/discourse/discourse-tag-icons)open_bookNew to Discourse Themes? [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) Install this theme component Features Here is an example of how this would look, with tag style set to the default (simple): Here is how this looks with tag sty…

---

<div class="post-metadata">

### Author: ![sid321](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sid321/32/466865_2.png) [@sid321](https://meta.discourse.org/u/sid321)
#### Post date: [November 21, 2024, 4:33pm UTC](https://meta.discourse.org/t/how-to-create-a-tag/337534/5 "2024-11-21T16:33:56Z")

</div>

You may try doing it manually, not sure if it works but yeah try giving it a shot:  
tag = Tag.find\_by(name: ‘movie\_camera’)  
tag.update!(name: “🎥”)

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [November 21, 2024, 4:43pm UTC](https://meta.discourse.org/t/how-to-create-a-tag/337534/6 "2024-11-21T16:43:56Z")

</div>

Tried that (see above). It is not possible to assign such a tag via the interface.

As a user in our forum noted, searching for emoji in UI is quite difficult, so I like @tobiaseigen’s advice on hiding the tag name in the UI (perhaps limited to special places) while using it in the backend.

> [@thoka](#):
>
> My conjecture is that the translation of emojis into their Markdown equivalent is also a contributing factor.

I would appreciate any pointers to the philosophy and machinery behind emoji to :emoji-name: translation. I do understand, that having pure ASCII markdown might have some benefits, but I would like to have the option to disable these conversions, keeping only the Unicode text.
