WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Code View - code being rewritten on save (3 posts)

  1. gillsans
    Member
    Posted 6 years ago #

    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!

  2. VeraBass
    Member
    Posted 6 years ago #

    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.

  3. gillsans
    Member
    Posted 6 years ago #

    I found this which I think will help:

    http://wordpress.org/support/topic/102696?replies=4

Topic Closed

This topic has been closed to new replies.

About this Topic