Customise 'Add Event' Button in Composer

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

to

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

Hi,

You have two settings that remove the button label.

  • Global: events event label no text
    image

  • Per category:
    image

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

3 Likes

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

1 Like

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

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