• When I create a page a single hit of the enter key causes a new paragraph, as opposed to a line break. Is this a wordpress thing or is this my theme? (Which is Roots btw). I’d like for one enter to be a line break, and two to be a paragraph

Viewing 3 replies - 1 through 3 (of 3 total)
  • It is the WYSIWYG editor that does this, the area you type into, not your theme. Your text will naturally wrap around to the next line when it reaches the end of the div or paragraph width and is what the editor expects you want.

    If you want to force a line break inside a paragraph, to make something easier to understand, you have to manually insert the <br /> tag into the HTML. This has been true in the different editors I have seen.

    To manually add in the tag just select the HTML tab in add/edit post or page area and type it in.

    I don’t recommend trying to edit the WYSIWYG editor code unless you have a strong understanding of Javascript. You could really mess things up otherwise.

    Try Shift+Enter for a line break.

    Thread Starter major4c22

    (@major4c22)

    Shift+Enter works, thank you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Line Break vs Paragraphs’ is closed to new replies.