I’m wondering if there is any way to customize which buttons are displayed (and in which order) on the New Topic toolbar.
Specifically, I want to replace the Date/Time button with the Add Event button. The Date/Time just causes confusion for new users and in our context, Events is what we want to highlight. Instructing users to first ignore the calendar-looking button, click on the gear icon, and then click on the other calendar looking icon is not the greatest considering our community has a lot of non-tech oriented and older folks using it.
I do see there are topics about customizing the new topic button, but not the toolbar itself.
With CSS it’s also fairly straightforward to reorder items in these menus… you can do something like:
.d-editor-button-bar {
.local-dates { // moves the date button to the beginning
order: -1/
}
}
We have a guide for figuring out how to change CSS over here:
All that said, the more difficult change is moving something to/from the dropdown menu and into the main toolbar (or vice versa). You’d need to hide the original button with CSS and then add a duplicate button using the API.
Looking at an example theme component, like Discourse Gifs gives a general idea of how that’s done… though this gets tricky if you’re not a developer.