# How to reset applied theme editor classes

**URL:** https://forums.concretecms.org/t/how-to-reset-applied-theme-editor-classes/6143
**Category:** Developing with Concrete
**Created:** [September 13, 2023, 6:02am UTC](https://forums.concretecms.org/t/how-to-reset-applied-theme-editor-classes/6143 "2023-09-13T06:02:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![VisualNotes](https://forums.concretecms.org/user_avatar/forums.concretecms.org/visualnotes/32/3547_2.png) [@VisualNotes](https://forums.concretecms.org/u/VisualNotes)
#### Post date: [September 13, 2023, 6:02am UTC](https://forums.concretecms.org/t/how-to-reset-applied-theme-editor-classes/6143/1 "2023-09-13T06:02:28Z")

</div>

After not finding a hint on how to reset an applied theme editor class in the editor, I came up with it myself. For those asking the same question, this might be helpful.

In page\_theme.php in public function getThemeEditorClasses() the first entry below provides the possibility to remove a set class by selecting “Clear” in the editor.

```auto
public function getThemeEditorClasses()
{
  return [
    ['title' => t('Clear'), 'element' => ['h1', 'h2', 'h3', 'h4', 'p'], 'attributes' => ['class' => '']],
    ['title' => t('Custom title'), 'element' => ['h1', 'h2', 'h3', 'h4'], 'attributes' => ['class' => 'custom-class']],
    ['title' => t('Another custom title'), 'element' => ['p'], 'attributes' => ['class' => 'another-custom-class']],
  ];
}

```

Concrete CMS version 9

---

<div class="post-metadata">

### Author: ![EvanCooper](https://forums.concretecms.org/user_avatar/forums.concretecms.org/evancooper/32/4597_2.png) [@EvanCooper](https://forums.concretecms.org/u/EvanCooper)
#### Post date: [September 15, 2023, 1:09am UTC](https://forums.concretecms.org/t/how-to-reset-applied-theme-editor-classes/6143/2 "2023-09-15T01:09:28Z")

</div>

Thanks for sharing @VisualNotes!
