Customize Text: + New Topic

Hi,

Is it possible to customize the text, “+ New Topic”, on a Category basis?

For instance, in one Category, we might want “Introduce Yourself”, in another, “Ask A Question”, in another, “Share Your Story”, etc.

5 Likes

It’s not possible out of the box, but I think it’s possible in a theme component… you’d probably need to add some conditions to the d-navigation.hbs or create-topic-button.hbs template.

4 Likes

This theme component (kindly sponsored by @outofthebox) will use jQuery to override the new topic button text. I chose to use jQuery instead of modifying the template as suggested above, because this is easier to maintain (at least, in my experience).

https://github.com/communiteq/discourse-tc-override-newtopic-text

The theme component has settings to override the button text per topic slug.
For subcategories use mainslug-subslug.

image

6 Likes

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