Support » Fixing WordPress » HTML in page-editor is changed on site

  • Hi,

    I’m not using the visual editor but the HTML.
    However, it seems like WordPress, when showing the page to a visitor, does not use my (perfect) HTML, but sort of sanitizes it (read: destroys it, adds empty p-tags, so on…)

    The code I’m working with:

    <a href="niels"><div class="c3">
    <h3>Niels</h3>
    <p class="job-title">Graphics-guy</p>
    </div></a>

    … and it turns into

    <a href="niels">
    <div class="c3">
    <h3>Niels</h3>
    <p class="job-title">Graphics-guy</p>
    </div>
    </a><p><a href="niels"></a></p>

    Is there any way I can disable the change of my code, so WordPress is actually outputting the code I typed?

  • The topic ‘HTML in page-editor is changed on site’ is closed to new replies.