WordPress.org

Ready to get started?Download WordPress

Forums

Classes getting added (2 posts)

  1. willcowd
    Member
    Posted 9 months 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.

    Thanks
    Mark

  2. esmi
    Forum Moderator
    Posted 9 months 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?

Reply

You must log in to post.

About this Topic

Tags