Classes getting added (2 posts)

  1. willcowd
    Posted 2 years ago #

    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.


  2. esmi
    Forum Moderator
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic