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

**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:** 1
**Showing post:** 2

<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.

---

_[View the full topic](https://meta.discourse.org/t/is-it-possible-to-change-topic-title-prompt-for-a-category/205219)._
