# Change category \<title\>

**URL:** https://meta.discourse.org/t/change-category-title/136338
**Category:** Support
**Created:** [December 17, 2019, 7:05pm UTC](https://meta.discourse.org/t/change-category-title/136338 "2019-12-17T19:05:03Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)
#### Post date: [December 17, 2019, 7:05pm UTC](https://meta.discourse.org/t/change-category-title/136338/1 "2019-12-17T19:05:03Z")

</div>

Is it possible to change the category page titles from, for example, “Latest %category% topics” to “%category% - latest topics”?

“Latest Programming topics” sounds fine in English, but in Russian “Последние Программирование темы” is incorrect and looks strange.

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [December 17, 2019, 10:51pm UTC](https://meta.discourse.org/t/change-category-title/136338/2 "2019-12-17T22:51:22Z")

</div>

Yep, pop over to `/admin/customize/site_texts?q=latest topics`. 🕶

---

<div class="post-metadata">

### Author: ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)
#### Post date: [December 18, 2019, 6:31am UTC](https://meta.discourse.org/t/change-category-title/136338/3 "2019-12-18T06:31:02Z")

</div>

Which key? I don’t see it here. Also tried to search by `categoryName`.

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [December 18, 2019, 9:14pm UTC](https://meta.discourse.org/t/change-category-title/136338/4 "2019-12-18T21:14:52Z")

</div>

You should search for the text you want to change. I’m guessing the `js.categories.latest` is what you are looking for, but if you can’t find the string directly, you should seek further assistance. 🙂

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [December 18, 2019, 9:15pm UTC](https://meta.discourse.org/t/change-category-title/136338/5 "2019-12-18T21:15:37Z")

</div>

If this is going to benefit more than your community consider contributing to the Russian translation on Transifex.

Editing local strings is a last resort.

---

<div class="post-metadata">

### Author: ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)
#### Post date: [December 18, 2019, 9:31pm UTC](https://meta.discourse.org/t/change-category-title/136338/6 "2019-12-18T21:31:46Z")

</div>

yeah, I usually contribute.

> [@maiki](#):
>
> `js.categories.latest`

No, it’s the column on the categories page.

I don’t see here anything like `Latest {{categoryName}} topics`

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [December 18, 2019, 10:35pm UTC](https://meta.discourse.org/t/change-category-title/136338/7 "2019-12-18T22:35:50Z")

</div>

Instead of posting examples that are “like” what you’re looking for, can you post some of the exact HTML that’s around that text? i.e. knowing attributes may help locate the template.

---

<div class="post-metadata">

### Author: ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)
#### Post date: [December 19, 2019, 6:30am UTC](https://meta.discourse.org/t/change-category-title/136338/8 "2019-12-19T06:30:57Z")

</div>

I was talking about HTML `<title>`.

e.g. on this forum:

```html
<title>Latest support topics - Discourse Meta</title>

```

It’s not really related to locales, to make it simpler, let’s say that I want to change it to

```html
<title>support - latest topics - Discourse Meta</title>
```

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [December 19, 2019, 7:36am UTC](https://meta.discourse.org/t/change-category-title/136338/9 "2019-12-19T07:36:08Z")

</div>

`js.filters.latest.title` is applied to the title, but it is also referred to in other parts of the UI. I recommend fixing it in locale data, as an override may require a theme component to detach that functionality.

That string can not be empty.

---

<div class="post-metadata">

### Author: ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)
#### Post date: [December 19, 2019, 7:55am UTC](https://meta.discourse.org/t/change-category-title/136338/10 "2019-12-19T07:55:17Z")

</div>

> [@maiki](#):
>
> `js.filters.latest.title` is applied to the title

Yes, but it’s just one part of the title (`{{js.filters.latest.title}} {{categoryName}} ...`), that is it’s not possible to change the word order.

> [@maiki](#):
>
> I recommend fixing it in locale data

What do you mean? As far as I can see there is no string with all 3 parts in the customization admin UI.  
So maybe it’s a feature request…

> [@maiki](#):
>
> may require a theme component to detach that functionality.

Would be better to do it on the server side, so it would appear correctly in the search engines.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [December 20, 2019, 2:51am UTC](https://meta.discourse.org/t/change-category-title/136338/11 "2019-12-20T02:51:50Z")

</div>

Thanks. Involved files

> <https://github.com/discourse/discourse/blob/main/app/views/layouts/application.html.erb#L=5>

> <https://github.com/discourse/discourse/blob/main/app/controllers/categories_controller.rb#L37-L41>

Though there is no “customize” solution available, there are some possibilities.

- A theme / component that rewrites the title text
- A plugin that allows working with the title variable value
- Make sure there’s a `is_homepage` and `SiteSetting.short_site_description.present` ?

---

<div class="post-metadata">

### Author: ![Alex\_P](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alex_p/32/163548_2.png) [@Alex\_P](https://meta.discourse.org/u/Alex_P)
#### Post date: [December 20, 2019, 8:11am UTC](https://meta.discourse.org/t/change-category-title/136338/12 "2019-12-20T08:11:44Z")

</div>

Looks like I found it: **js.filters.with\_category** in Customize.  
e.g. I changed it from `%{filter} %{category} topics` to` %{category} - %{filter} topics` (` %{category} - %{filter} темы` in Russian).

> [@Mittineague](#):
>
> Involved files

The second file is for the `/categories` page, not for category topics. I needed this one:

> <https://github.com/discourse/discourse/blob/edbc3565933819a9ebe4e80d567c35f5dca061a2/app/controllers/list_controller.rb#L90>

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [January 19, 2020, 8:19am UTC](https://meta.discourse.org/t/change-category-title/136338/13 "2020-01-19T08:19:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
