# Add html based on tag

**URL:** https://meta.discourse.org/t/add-html-based-on-tag/109498
**Category:** UX
**Created:** [February 18, 2019, 11:05pm UTC](https://meta.discourse.org/t/add-html-based-on-tag/109498 "2019-02-18T23:05:16Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)
#### Post date: [February 18, 2019, 11:05pm UTC](https://meta.discourse.org/t/add-html-based-on-tag/109498/1 "2019-02-18T23:05:16Z")

</div>

This is a bit of a continuation of [this topic](https://meta.discourse.org/t/anyway-to-style-discourse-topic-title-ie-red-bold-highlight-anything/77852/11).

I would like to add a simple line of html to add text to a topic that has a certain tag. For example, if the topic below had the tag ‘critique’ I would like a line added that prominently says ‘Open for Critique’ as shown below, or if the tag ‘do-not-critique’ is present, then change the text to ‘Not for Critique’. I’m curious to see if this is even possible.

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/7/f7c34b769a445b041b02f11c2de7552c8b78a299.jpeg)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 18, 2019, 11:55pm UTC](https://meta.discourse.org/t/add-html-based-on-tag/109498/2 "2019-02-18T23:55:34Z")

</div>

Technically this can be done with a theme component, yes.
