# Change title in head section for specific category

**URL:** <https://meta.discourse.org/t/change-title-in-head-section-for-specific-category/73533>\
**Category:** Development\
**Created:** [2017年十一月6日 16:38 UTC](https://meta.discourse.org/t/change-title-in-head-section-for-specific-category/73533 "2017-11-06T16:38:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathieu](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@Mathieu](https://meta.discourse.org/u/Mathieu)\
**Post date:** [2017年十一月6日 16:38 UTC](https://meta.discourse.org/t/change-title-in-head-section-for-specific-category/73533/1 "2017-11-06T16:38:08Z")

</div>

Hello there,

I’m trying to do something by creating a plugin but I have problems to find the best way to.

I have on my Discourse instance a specific category for which I want to change the in the head section.  
I need all titles on this category to be transformed by `"some text :" + title ` when rendering.

I do not need to change title in database or something like this because the title in h1 is the good one. Just need to do what I explained.

Can someone guide me?  
Thanks by advance.

---

<div class="post-metadata">

**Author:** ![vinothkannans](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vinothkannans/32/86465_2.png) [@vinothkannans](https://meta.discourse.org/u/vinothkannans)\
**Post date:** [2017年十一月6日 18:01 UTC](https://meta.discourse.org/t/change-title-in-head-section-for-specific-category/73533/2 "2017-11-06T18:01:17Z")

</div>

“some text :” is static text? If yes, then you can use CSS like below

```css
.category-dev h1:before {
    content: "some text : ";
}

```

In above replace `dev` with your category slug.

> [@Mathieu](#):
>
> I want to change the in the head section.

Do you mean in `<head>` tag? Then you may need to use either Theme Components or Plugins.

---

<div class="post-metadata">

**Author:** ![Mathieu](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@Mathieu](https://meta.discourse.org/u/Mathieu)\
**Post date:** [2017年十一月6日 18:31 UTC](https://meta.discourse.org/t/change-title-in-head-section-for-specific-category/73533/3 "2017-11-06T18:31:08Z")

</div>

Thanks for your answer.

Like I said, I mean in tag yes.  
This is why I need to build a plugin to do this.

---

<div class="post-metadata">

**Author:** ![Mathieu](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@Mathieu](https://meta.discourse.org/u/Mathieu)\
**Post date:** [2017年十一月17日 15:26 UTC](https://meta.discourse.org/t/change-title-in-head-section-for-specific-category/73533/4 "2017-11-17T15:26:22Z")

</div>

Anyone can help me with this?
