Title: Adding custom CSS classes to Visual Editor &#8220;Format&#8221; menu
Last modified: August 19, 2016

---

# Adding custom CSS classes to Visual Editor “Format” menu

 *  [dvsmith](https://wordpress.org/support/users/dvsmith/)
 * (@dvsmith)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/adding-custom-css-classes-to-visual-editor-format-menu/)
 * I’m trying to add custom CSS classes to the **Format** drop-down menu of wordpress’
   TinyMCE visual editor. I’m using WordPress as a CMS, with some non-CSS-savvy 
   users.
 * I’ve modified `theme_advanced_blockformats` in `/wp-includes/js/tinymce/themes/
   advanced/editor_template.js`, but non-standard tags either break the menu or 
   don’t do anything.
 * Another mystery, standard elements added to the menu (for example, `hr`) do work—
   it modified the post/page code properly — but they show up in the Format menu
   as an empty selection.
 * (I have looked at: [wordpress.org/support/topic/165934?replies=3](http://wordpress.org/support/topic/165934?replies=3)
   and [blog.circlesixdesign.com/2007/01/03/wp-richtext/](http://blog.circlesixdesign.com/2007/01/03/wp-richtext/),
   which weren’t of much help beyond pointing me in the right direction for the 
   file.)

The topic ‘Adding custom CSS classes to Visual Editor “Format” menu’ is closed to
new replies.

## Tags

 * [tinymce](https://wordpress.org/support/topic-tag/tinymce/)
 * [visual editor](https://wordpress.org/support/topic-tag/visual-editor/)

 * 0 replies
 * 1 participant
 * Last reply from: [dvsmith](https://wordpress.org/support/users/dvsmith/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/adding-custom-css-classes-to-visual-editor-format-menu/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
