1

I'm using the inbuilt text editor in Wordpress 4.0 to edit some content. I've got 2 paragraphs and would like to leave a blank line between the two.

To do this I could add a <br> element between the 2 paragraphs, but if someone who doesn't know html is writing the content this wouldn't be very helpful; is there a way it can be done natively in Wordpress?

I've attached some markups to illustrate the issue at the moment.

enter image description here enter image description here enter image description here

  • Try using echo wpautop( get_the_content()); This will keep line breaks from your post content without using BR tag – Gangesh Nov 2 '14 at 19:41
1

You should use wpautop, and in your CSS styles (editor styles + theme styles) make sure that any paragraphs are properly spaced.

p {
  margin-bottom: 20px;
}

or

p + p {
  margin-top: 20px;
}
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.