![]() |
Summary | Changes the text of the New Topic button per category. |
![]() |
Repository | github.com/nathan-nz/category-new-topic-button |
![]() |
Install Guide | How to install a theme or theme component |
![]() |
New to Discourse Themes? | Beginner’s guide to using Discourse Themes |
Install this theme component
This theme component allows you to customise the “Create Topic” button label in Discourse for specific categories, for the specific use case of dedicated Events categories.
It can easily be forked and modified for other use cases; it wasn’t practical to make this configurable.
How It Works
This component leverages Discourse’s API to override the default “Create Topic” button label based on category-specific needs. It allows admins to control which categories display custom labels and what that label should be.
Configuration and Settings
-
Settings Options:
- Category Event Labels: A setting allows administrators to pick specific categories that should use the new_event translation (“New Event” by default).
- Default Behaviour: For categories not specified in the settings, the button will default to displaying the new_topic translation (“New Topic” by default).
-
How to Configure:
- Access Settings: Navigate to the theme settings section in your Discourse admin panel.
- Select Categories: Use the category picker under the “Category Event Labels” setting to select categories you want labelled as “New Event.”
- Save and Update: After making selections, save your changes to apply the new button labels instantly.
This component is designed to be simple yet powerful, giving you the flexibility to either apply uniform or categorised customisation to your forum’s interface.