# How to customize editor button? (remove couple option)

**URL:** https://meta.discourse.org/t/how-to-customize-editor-button-remove-couple-option/87367
**Category:** Development
**Created:** [May 13, 2018, 1:11pm UTC](https://meta.discourse.org/t/how-to-customize-editor-button-remove-couple-option/87367 "2018-05-13T13:11:01Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![1c7](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/1c7/32/94822_2.png) [@1c7](https://meta.discourse.org/u/1c7)
#### Post date: [May 13, 2018, 1:11pm UTC](https://meta.discourse.org/t/how-to-customize-editor-button-remove-couple-option/87367/1 "2018-05-13T13:11:01Z")

</div>

### For example

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/4/945e02a9ee2448348e87578ab5a2d34f3564123f.png)

### How do I remove these option?

### What’s the best way to do it?

just use CSS `display:none`?  
something like

```plaintext
.bold.btn.no-text.btn-icon.ember-view{
   display: none;
}

```

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/3/b315e5a6b723a4872292e5c5c71ab88ab4bf2235.png)

## it work, but is this the best way?

Thanks!

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [May 13, 2018, 6:58pm UTC](https://meta.discourse.org/t/how-to-customize-editor-button-remove-couple-option/87367/2 "2018-05-13T18:58:13Z")

</div>

I don’t know if it might be the “best” way to do it. But it certainly is the simplest way to do it.

If you take it out of the DOM there is the possibility that users could add it back in (like you did using your dev tools to remove it)

If you wanted to take it out completely it would involve removing it from the output which is not so simple to do.

So I guess the question is why do you want to remove them. Is the goal to simply tidy up the options display or to deter or prevent users from having those options?

---

<div class="post-metadata">

### Author: ![1c7](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/1c7/32/94822_2.png) [@1c7](https://meta.discourse.org/u/1c7)
#### Post date: [May 14, 2018, 4:37am UTC](https://meta.discourse.org/t/how-to-customize-editor-button-remove-couple-option/87367/3 "2018-05-14T04:37:20Z")

</div>

Thanks for reply!  
I simply want tidy up,  
I am just asking in case there are better way, now I would keep using this CSS way~

Thanks again!

---

<div class="post-metadata">

### Author: ![kOS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kos/32/441826_2.png) [@kOS](https://meta.discourse.org/u/kOS)
#### Post date: [September 22, 2024, 9:40am UTC](https://meta.discourse.org/t/how-to-customize-editor-button-remove-couple-option/87367/4 "2024-09-22T09:40:50Z")

</div>

Hi there, have you or somebody else found a way to tidy up the the menu?

I wanna disable the calender symbol as it bites with the custom Event Plugin from [Pavilion](https://github.com/angusmcleod/discourse-events)

 ![Screenshot of App Brave Browser in Window Calendar 🗓️ Calender topics - Forum CoCreation World Date 2024-09-22 at 09-39 000626](https://global.discourse-cdn.com/meta/original/4X/1/c/0/1c004291893f2999ca9f1cd78beae06c0ddfd6e1.png)

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [September 22, 2024, 10:06am UTC](https://meta.discourse.org/t/how-to-customize-editor-button-remove-couple-option/87367/5 "2024-09-22T10:06:54Z")

</div>

Do you want to hide the icon or disable the locale dates feature entirely? The icon disappears if you disable `discourse local dates enabled`. However, if you don’t want to disable the feature in general, you can hide the button with CSS. You can also read more about customizing the composer toolbar at [How to customize the composer toolbar? - #3 by awesomerobot](https://meta.discourse.org/t/how-to-customize-the-composer-toolbar/323577/3).

---

<div class="post-metadata">

### Author: ![kOS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kos/32/441826_2.png) [@kOS](https://meta.discourse.org/u/kOS)
#### Post date: [September 22, 2024, 1:58pm UTC](https://meta.discourse.org/t/how-to-customize-editor-button-remove-couple-option/87367/6 "2024-09-22T13:58:29Z")

</div>

> [@Moin](#):
>
> disable the feature in general?u=moin.

Yes, exactly this. Thanks for the tipp. This did the job for me.

> [@How to customize the composer toolbar?](https://meta.discourse.org/t/how-to-customize-the-composer-toolbar/323577/3):
>
> ```plaintext
> .d-editor-button-bar {
> .local-dates { // hides the date button
> display: none;
> }
> }
> 
> ```
