WordPress Page Editor - Problems adding HTML (3 posts)

  1. Quin
    Posted 4 years ago #


    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)

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    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.

  3. Quin
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic