WordPress.org

Ready to get started?Download WordPress

Forums

How to add line breaks in to posts. (7 posts)

  1. pepsimax2k
    Member
    Posted 7 years ago #

    Should be a simple one this...

    How do I add line breaks in to normal posts?

    I just want to move some text in a post further down from the text above it, more than just one line. But WordPress seems to strip just about any formatting of that kind out of the post. I've tried br's, br's with spaces in between, extra paragraphs, and nothing works.

  2. richarduk
    Member
    Posted 7 years ago #

    Try inserting <p class="spacer"> and define it in style sheet, or even just
    `<p style="line-height:30px"> 

    (Sorry, Firefox is playing silly buggers and wont let me put the closing p tag on.)

    This wont get stripped out

  3. pepsimax2k
    Member
    Posted 7 years ago #

    Found this post about the issue, going back nearly a year. There doesn't really appear to be a solution, the best one mentioned was:

    <br clear="all" />

  4. Doodlebee
    Member
    Posted 7 years ago #

    Are you using the Visual Rich Editor?

    Still...a double-return should do it for you...

  5. pepsimax2k
    Member
    Posted 7 years ago #

    >> Are you using the Visual Rich Editor?

    nope. and a double return is stripped out too. i read something about shift-return or something that only works in IE? using firefox i don't suppose it would work even if i could remember what it was :p

  6. Doodlebee
    Member
    Posted 7 years ago #

    that's weird - it shouldn't be doing that. What version are you running?

  7. pepsimax2k
    Member
    Posted 7 years ago #

    2.1 (.0 i presume, i never updated to 2.1.1 anyway...). Double return deffinately does nothing, neither does shift-return in IE. Same thing with/without visual rich editor turned on, and in code/visual with it on.

    Two or more normal line breaks (in code or just using return) are always converted in to:

    </p>
    <p>

    EDIT: hang on... did i give a horibly bad explanation of my original problem? i'm having trouble getting the equivalent of more than 2 line breaks in to a post, if there's any confusion :)

Topic Closed

This topic has been closed to new replies.

About this Topic