Title: WordPress Page Editor &#8211; Problems adding HTML
Last modified: August 20, 2016

---

# WordPress Page Editor – Problems adding HTML

 *  [Quin](https://wordpress.org/support/users/quin452/)
 * (@quin452)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/wordpress-page-editor-problems-adding-html/)
 * Hello
 * I am having trouble with one site (and I’ve looked around for a solution previously).
   
   It is not me personally who is, but a friend of mine who is adding content to
   the pages.
 * I’ve got it set up so the content is placed within a div element for styling 
   purposes.
    Whenever I edit the page, everything is fine. Whenever my friend does
   it, the ID goes, so I am left with a <div>.
 * We are both using HTML, and the nested XHTML is unchecked.
 * What could be the problem? Is there any fix?
    Neither of us will be using this
   site, it is for someone else who knows nothing about HTML.
 * If anything, how can I disable the Visual Editor whole-site? (perhaps it will
   stop it)

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/wordpress-page-editor-problems-adding-html/#post-2340949)
 * Try ticking “Disable rich-text editor” in tour friend’s Profile. If he is using
   the Visual Editor, that could wipe out some (if not all) of the added markup.
 *  Thread Starter [Quin](https://wordpress.org/support/users/quin452/)
 * (@quin452)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/wordpress-page-editor-problems-adding-html/#post-2341291)
 * Nope, that doesn’t do anything (she has always had it disabled).
 * I thought it could be down to ID, but CLASS is also stripped.
    Though I have 
   other divs with other class names and they are fine (completely unaffected).
 * EDIT: I’ve now established that **classes** without **numbers** seem to work…
 * `<div id="layer1"></div>` became `<div></div>` when stripped
    `<div class="layer-
   a"></div>` works fine

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

The topic ‘WordPress Page Editor – Problems adding HTML’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Quin](https://wordpress.org/support/users/quin452/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/wordpress-page-editor-problems-adding-html/#post-2341291)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
