Title: WordPress editor removes class= when posting code.
Last modified: August 20, 2016

---

# WordPress editor removes class= when posting code.

 *  Resolved [jameyer](https://wordpress.org/support/users/jameyer/)
 * (@jameyer)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wordpress-editor-removes-class-when-posting-code/)
 * I’m working on a blog about my journey learning to write WordPress templates.
   Because of this, I post a lot of my code.
    I’ve noticed if I post something like
 * div class=’container’
 * the class will get stripped out. I’ve been able to work around this using Paste
   as Plain Text, but I lose my formatting. Is this the only way to get this working
   or am I missing an option in the editor?
    I’ve tried searching the forums, but
   most of the suggestions say to just use the HTML tab, so I think my search is
   bad and it’s returning ways to use code in the editor. Any help would be appreciated.
   Thanks.

Viewing 1 replies (of 1 total)

 *  Thread Starter [jameyer](https://wordpress.org/support/users/jameyer/)
 * (@jameyer)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/wordpress-editor-removes-class-when-posting-code/#post-2202109)
 * I just switched to Dean’s FCKEditor For WordPress. It let’s me post code all 
   day long.

Viewing 1 replies (of 1 total)

The topic ‘WordPress editor removes class= when posting code.’ is closed to new 
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [jameyer](https://wordpress.org/support/users/jameyer/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/wordpress-editor-removes-class-when-posting-code/#post-2202109)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
