# האם אפשר לשנות את כותרת הנושא עבור קטגוריה?

**URL:** https://meta.discourse.org/t/is-it-possible-to-change-topic-title-prompt-for-a-category/205219
**Category:** Support
**Created:** [5 באוקטובר,‏ 2021,‏ 2:36am UTC](https://meta.discourse.org/t/is-it-possible-to-change-topic-title-prompt-for-a-category/205219 "2021-10-05T02:36:06Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rodypl](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rodypl/32/215426_2.png) [@rodypl](https://meta.discourse.org/u/rodypl)
#### Post date: [5 באוקטובר,‏ 2021,‏ 2:36am UTC](https://meta.discourse.org/t/is-it-possible-to-change-topic-title-prompt-for-a-category/205219/1 "2021-10-05T02:36:06Z")

</div>

I created a category on my forum called “Contest Submissions”. This category will be reserved to submissions for when our company runs a contest. I’ve figured out how to create a topic template for the body of a new topic, but I can’t figure out how to edit the title of that topic. Here’s what I mean:

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/6/96dcb920a1ec928fe77203c8cf8a676287f936df.png)

Notice how my title prompt just says “an interesting title” right now. I want to change it to say “The title of your project”. But I only want to change it for that specific category. Not the whole forum. How do I do that?

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [5 באוקטובר,‏ 2021,‏ 4:25pm UTC](https://meta.discourse.org/t/is-it-possible-to-change-topic-title-prompt-for-a-category/205219/2 "2021-10-05T16:25:00Z")

</div>

Discourse assigns an id to each category that gets created, so you can use that to accomplish your goal.

You’ll need to add a bit of custom code to a [theme component](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) and add it to your active theme(s)

Here’s the commented code for what you want to achieve.

```xml
<script type="text/discourse-plugin" version="0.8">
  // options you can change
  const targetCategoryId = 6; // change this to the category you want to target
  const placeHolderForCategory = "CHANGE_THIS_TEXT_BUT_KEEP_THE_QUOTES";

  // no need to change anything below this line. Stop here if you're an admin.
  const discourseComputed = require("discourse-common/utils/decorators")
    .default;

  // not a remote component
  const currentLocale = I18n.currentLocale();
  I18n.translations[
    currentLocale
  ].js.composer.custom_category_placeholder = placeHolderForCategory;

  // changes placeholder for target category, otherwise, fallback to
  // defaults.
  api.modifyClass("model:composer", {
    @discourseComputed("canEditTopicFeaturedLink")
    titlePlaceholder() {
      return this.category && this.category.id === targetCategoryId
        ? "composer.custom_category_placeholder"
        : this._super();
    },
  });
</script>

```

This goes into the `common > header` tab of your component.

You can get the category id by visiting the page for that specific category and checking the URL

For example,

The id for the #Support category here on Meta is 6 (the last digit in the URL here)

[Support - Discourse Meta](https://meta.discourse.org/c/support/6)

In the snippet above, the id (number) for your target category should replace “6” in `targetCategoryId`

The other option is pretty straightforward, change the text to what you’d like to show as the placeholder for the title for that category.

---

<div class="post-metadata">

### Author: ![jimkleiber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimkleiber/32/121814_2.png) [@jimkleiber](https://meta.discourse.org/u/jimkleiber)
#### Post date: [22 באפריל,‏ 2025,‏ 3:55pm UTC](https://meta.discourse.org/t/is-it-possible-to-change-topic-title-prompt-for-a-category/205219/3 "2025-04-22T15:55:08Z")

</div>

Just came across this and excited to use it in combination with the [Experimental Form Templates](https://meta.discourse.org/t/introducing-experimental-form-templates/278631) as people may forget to enter a title and not know what to put there…but it doesn’t seem to work for me.

Anyone know if this still works?

---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [16 במרץ,‏ 2026,‏ 5:55pm UTC](https://meta.discourse.org/t/is-it-possible-to-change-topic-title-prompt-for-a-category/205219/4 "2026-03-16T17:55:15Z")

</div>

This is now in core

[https://github.com/discourse/discourse/commit/c29e72280157a0b844657b42d441ebb577117d6b](https://github.com/discourse/discourse/commit/c29e72280157a0b844657b42d441ebb577117d6b)
