Support » Fixing WordPress » 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


    Forum Moderator

    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.

    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.