WordPress.org

Support

Support » How-To and Troubleshooting » Classes getting added

Classes getting added

  • Hi All

    I hope you can help as I can’t find the answer anywhere.

    If I have a div. <div class=”mystyle”>Text</div>
    and inside the div tag I press enter, the html ends up as

    <div class=”mystyle”>Text</div>
    <div class=”mystyle”>New line</div>

    What I need is
    <div class=”mystyle”>Text
    new line</div>

    How can I stop wordpress adding extra divs? Main problem comes when adding images.

    Thanks
    Mark

Viewing 1 replies (of 1 total)
  • esmi

    @esmi

    Forum Moderator

    The WordPress editor never adds <div></div> tags. In fact (and as far as I am aware) the Text editor isn’t capable of adding div tags. Can you replicate the problem using the default Twenty Thirteen theme with all plugins deactivated?

Viewing 1 replies (of 1 total)
  • The topic ‘Classes getting added’ is closed to new replies.
Skip to toolbar