Title: Code View &#8211; code being rewritten on save
Last modified: August 18, 2016

---

# Code View – code being rewritten on save

 *  Resolved [gillsans](https://wordpress.org/support/users/gillsans/)
 * (@gillsans)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/code-view-code-being-rewritten-on-save/)
 * Im having a problem with using custom styles in a div inside the code view.
    
   When I “save” the code gets rewritten and my <div class=”something”> turns into
   <p class=”something”>
 * Is there anyway to turn on code rewriting?
 * Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [verabass](https://wordpress.org/support/users/verabass/)
 * (@verabass)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/code-view-code-being-rewritten-on-save/#post-647340)
 * In my (recent) version I turn off the visual editor for the user, and then also
   uncheck
    “WordPress should correct invalidly nested XHTML” under Options -> Writing.
   Then my code doesn’t get altered.
 *  Thread Starter [gillsans](https://wordpress.org/support/users/gillsans/)
 * (@gillsans)
 * [18 years, 5 months ago](https://wordpress.org/support/topic/code-view-code-being-rewritten-on-save/#post-647341)
 * I found this which I think will help:
 * [http://wordpress.org/support/topic/102696?replies=4](http://wordpress.org/support/topic/102696?replies=4)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Code View – code being rewritten on save’ is closed to new replies.

## Tags

 * [admin](https://wordpress.org/support/topic-tag/admin/)
 * [admin section](https://wordpress.org/support/topic-tag/admin-section/)
 * [css](https://wordpress.org/support/topic-tag/css/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [gillsans](https://wordpress.org/support/users/gillsans/)
 * Last activity: [18 years, 5 months ago](https://wordpress.org/support/topic/code-view-code-being-rewritten-on-save/#post-647341)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
