# Customise 'Add Event' Button in Composer

**URL:** https://meta.discourse.org/t/customise-add-event-button-in-composer/287892
**Category:** Support
**Created:** [December 7, 2023, 9:22pm UTC](https://meta.discourse.org/t/customise-add-event-button-in-composer/287892 "2023-12-07T21:22:06Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![martyn\_thomas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martyn_thomas/32/344874_2.png) [@martyn\_thomas](https://meta.discourse.org/u/martyn_thomas)
#### Post date: [December 7, 2023, 9:22pm UTC](https://meta.discourse.org/t/customise-add-event-button-in-composer/287892/1 "2023-12-07T21:22:07Z")

</div>

Hi

New Discourse Admin here (been roped into doing a 2.4 to 3.\* migration) - sorry in advance for the silly questions:

I’m trying to customise the date picker in the composer window.

In our 2.4 install it displays as ‘Add Date and Time’, but in 3.1 it’s just to calendar icon.

I’ve worked out that the button needs to following changed:

The button’s class to be changed from:

` class="add-event btn no-text btn-icon"`

to

`class="add-event btn no-text btn-icon"`

and a span to be added into the button

`<span class="d-button-label">Add Date and Time<!----></span>`

So it goes from

![image](https://global.discourse-cdn.com/meta/original/4X/7/8/4/784a5c68af108b4b2d4bfbdfa936ab4a05ba0ea3.png)

to

![image](https://global.discourse-cdn.com/meta/original/4X/b/d/6/bd6f6bcfb57658019bc6750109d3e5cd4284bfd2.png)

I cannot find any existing customisation (in Theme or Theme Components) which caused it in 2.4.

Can anyone advice the best way of making these changes in 3.1+?

Thanks

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [December 7, 2023, 10:25pm UTC](https://meta.discourse.org/t/customise-add-event-button-in-composer/287892/2 "2023-12-07T22:25:41Z")

</div>

Hi,

You have two settings that remove the button label.

- Global: `events event label no text`  
 ![image](https://global.discourse-cdn.com/meta/original/4X/9/7/8/978c5c17c972e7a12e256efa41b27f84c2b330ae.png)

- Per category:  
 ![image](https://global.discourse-cdn.com/meta/original/4X/b/4/7/b4715f66d828b7f7d95d90dfad64981429a22622.png)

Make sure you did not enable one of those two options!

---

<div class="post-metadata">

### Author: ![martyn\_thomas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martyn_thomas/32/344874_2.png) [@martyn\_thomas](https://meta.discourse.org/u/martyn_thomas)
#### Post date: [December 7, 2023, 10:45pm UTC](https://meta.discourse.org/t/customise-add-event-button-in-composer/287892/3 "2023-12-07T22:45:29Z")

</div>

Worked a charm - thanks so much, it’s amazing how many settings are hidden unless you know what to look for,

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [December 7, 2023, 11:01pm UTC](https://meta.discourse.org/t/customise-add-event-button-in-composer/287892/4 "2023-12-07T23:01:31Z")

</div>

Honestly, I had to look at the code; it was initially unclear to me. 😄

---

<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 6, 2024, 11:01pm UTC](https://meta.discourse.org/t/customise-add-event-button-in-composer/287892/5 "2024-01-06T23:01:37Z")

</div>

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