# How can I add labels in create topic form fields?

**URL:** https://meta.discourse.org/t/how-can-i-add-labels-in-create-topic-form-fields/155784
**Category:** Development
**Created:** [June 24, 2020, 10:21am UTC](https://meta.discourse.org/t/how-can-i-add-labels-in-create-topic-form-fields/155784 "2020-06-24T10:21:12Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Kamran\_Afzal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kamran_afzal/32/178393_2.png) [@Kamran\_Afzal](https://meta.discourse.org/u/Kamran_Afzal)
#### Post date: [June 24, 2020, 10:21am UTC](https://meta.discourse.org/t/how-can-i-add-labels-in-create-topic-form-fields/155784/1 "2020-06-24T10:21:12Z")

</div>

I want to add labels in create topic form fields is there any plugin available or any custom solution?

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [June 24, 2020, 10:40am UTC](https://meta.discourse.org/t/how-can-i-add-labels-in-create-topic-form-fields/155784/2 "2020-06-24T10:40:42Z")

</div>

Do you mean a template so when a user creates a new topic, there are pre-filled options just like we have on #Marketplace?

Can you share a mockup or screenshot of where you want these fields?

---

<div class="post-metadata">

### Author: ![Qursch](https://avatars.discourse-cdn.com/v4/letter/q/c37758/32.png) [@Qursch](https://meta.discourse.org/u/Qursch)
#### Post date: [June 24, 2020, 11:18am UTC](https://meta.discourse.org/t/how-can-i-add-labels-in-create-topic-form-fields/155784/3 "2020-06-24T11:18:22Z")

</div>

Not exactly sure what you mean, but if you want to change the placeholder text, you can do that in the admin Customization tab, under Text. Type the current placeholder of the field and you should be able to change it.

---

<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: [June 24, 2020, 11:19am UTC](https://meta.discourse.org/t/how-can-i-add-labels-in-create-topic-form-fields/155784/4 "2020-06-24T11:19:57Z")

</div>

Do you mean this?: [Topic Template Placeholder Text theme component](https://meta.discourse.org/t/topic-template-placeholder-text-theme-component/149053)

---

<div class="post-metadata">

### Author: ![Kamran\_Afzal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kamran_afzal/32/178393_2.png) [@Kamran\_Afzal](https://meta.discourse.org/u/Kamran_Afzal)
#### Post date: [June 24, 2020, 12:52pm UTC](https://meta.discourse.org/t/how-can-i-add-labels-in-create-topic-form-fields/155784/6 "2020-06-24T12:52:30Z")

</div>

Attached is the design screenshot which i need to implement. My question was to add the labels with text field as shown in the design

 ![Create Topic Preview](https://global.discourse-cdn.com/meta/original/3X/9/b/9b97684f79531947daa180ebdaa1ed11ab81b4df.png)

---

<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: [June 24, 2020, 12:54pm UTC](https://meta.discourse.org/t/how-can-i-add-labels-in-create-topic-form-fields/155784/7 "2020-06-24T12:54:14Z")

</div>

So you just want to add labels for each of the fields?

---

<div class="post-metadata">

### Author: ![Kamran\_Afzal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kamran_afzal/32/178393_2.png) [@Kamran\_Afzal](https://meta.discourse.org/u/Kamran_Afzal)
#### Post date: [June 24, 2020, 12:56pm UTC](https://meta.discourse.org/t/how-can-i-add-labels-in-create-topic-form-fields/155784/8 "2020-06-24T12:56:05Z")

</div>

Only fields labels and some styling.

---

<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: [June 24, 2020, 1:28pm UTC](https://meta.discourse.org/t/how-can-i-add-labels-in-create-topic-form-fields/155784/9 "2020-06-24T13:28:03Z")

</div>

There are numerous approaches here, but consider, in order of preference:

- CSS
- Use of plugin outlets
- jQuery/equivalent native javascript edits of the DOM (not sure how easy this will be because this is not a component, so I don’t think it will be that easy to schedule manipulation as there are no event hooks).
- altering the template [https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/app/templates/composer.hbs](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/app/templates/composer.hbs)

The last option is risky, because this file will probably get a lot of updates over time (last update was 7 days ago!) and you don’t normally want to be overriding templates, especially those that frequently change, as you will mask stuff from core too much and break things.

---

<div class="post-metadata">

### Author: ![jenrj](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jenrj](https://meta.discourse.org/u/jenrj)
#### Post date: [October 17, 2022, 3:32pm UTC](https://meta.discourse.org/t/how-can-i-add-labels-in-create-topic-form-fields/155784/10 "2022-10-17T15:32:01Z")

</div>

Hi!

I’m interested in doing the same. Is modifying the CSS in our Community theme still the recommended way to go for accomplishing this? I work with a new front-end developer on my team who I can ask for help, but I’m not sure where I can point them in our theme CSS to help with this.

---

<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: [October 17, 2022, 4:09pm UTC](https://meta.discourse.org/t/how-can-i-add-labels-in-create-topic-form-fields/155784/11 "2022-10-17T16:09:36Z")

</div>

imho, if you just want labels, then yes, that advice stands. CSS would be the first call.

FYI It would have been nice if the original author would have shared their solution having received community advice, it is nice when people give back.
