Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

How to Add Single / Double Line Spacing in WordPress

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Add Single / Double Line Spacing in WordPress

In most Word processors, you can easily add extra blank line spaces. All you have to do is press the ENTER key a few times. If you’re a bit more savvy, then you can change the formatting to create double spaced line after paragraphs, increase line spacing, etc. Now this becomes really frustrating for beginners when they start using the WordPress visual editor. Why? because there is no formatting button like MS Word. In this article, we will show you how to add single / double line spacing in WordPress.

Before we start, it’s important to know that line spacing is controlled by the WordPress theme you use. We will show you how to add line spacing in the visual editor, and then we will cover how to change the line spacing in your theme if you’re not happy with the results.

Video Tutorial

If you don’t like the video or need more instructions, then continue reading.

Adding Double Line Space

When you press Enter to add a line break, WordPress visual editor considers it as a new paragraph. This means that it will automatically add double line space granted that your theme has the styling for it (most good themes do).

So simply go in and press Enter after the line and then type something else in the next line.

Double Line Space

By simply doing that, based on your theme styling, you should see a clear distinction between paragraphs (i.e double line spacing).

Double Spacing Preview

Adding Single Line Space

Now if you are writing something like an address, then you probably want it to be single spaced instead of double spaced.

Single Space Preview

In this case, you need to press SHIFT + ENTER key.

This will tell WordPress that you want to start a new line inside an existing paragraph thus it needs single line spacing vs double line spacing.

Modifying the Line height and Spacing

Sometimes even when you add the proper line spacing in the editor, it doesn’t display the way you want it to in your theme. This is when you need to make CSS changes. CSS is basically like the formatting feature in Microsoft Word.

Yes you will tweak a little bit of CSS code, but it’s not as scary as you think it is.

Open your theme’s CSS file. You can find it by going to Appearance » Editor in your WordPress admin area. You can also use FTP as well if you like.

In your CSS file, you want to look for .post p

This basically controls the display of paragraphs in your post content. Once you find it, you need to add or modify the line-height value. If you do not find the .post p tag, then simply create one.

.post p{line-height: 1.5em;} 

The CSS rule shown above will change the line spacing of paragraph content to 1.5em. Em is a unit of width for typography. We are using .post class which WordPress automatically adds to the content area of all posts to make sure it only affects posts and not paragraphs used elsewhere.

Now this only changes the spacing of single spacing. If you want to change the spacing between each paragraph (i.e double spacing), then you would need to add padding.

.post p { 
line-height: 1.5em;
padding-bottom: 15px;

Feel free to adjust the numbers to meet your needs.

We hope this article helped you add single / double line spacing in WordPress. If you liked this article, then consider subscribing to our YouTube channel and follow us on Twitter.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Cat says:

    How about simply adding some text and changing the text colour to white (if the background is white)? This should make it possible to create and customise line spaces much easier (unless, of course, the background is a picture of something that cannot be matched with font colour).

  2. Tim says:

    Thanks so much! Life saver!

  3. Michael Rich says:

    Hi WPBeginner staff,

    I have a different question. I use Visual Composer and have added many Separator with Text dividers between my section headings on my homepage. I would like to make those text headings also be a link to that section.
    However everytime I add the link I lose the section identifying text that I had in the separator and it’s magically replaced with the default text saying “TITLE”.

    To try to make it a link I am adding a the linking code inside this bracket:
    [vc_text_separator title=”1950s CARS”]

    I am scratching my head so hard that I think I’m bald. Any help will get you a lifetime of gratitude!!!


  4. Anthony Cooper says:

    I am using the WordPress ‘Divi’ theme and found that if you press enter (or shift + enter) twice, in order to create a larger space, it is ignored. To get round this press enter once, type a character on the line, (it does not matter what), highlight it and change the font colour of the character to white and then press enter again; this results in the desired space between lines without having to edit the theme. The same applies to extra spaces in a line; enter as many characters as desired, highlight them and change their font colour to white and then carry on in the desired font colour.

  5. Ellen says:

    This was really helpful, thanks!

  6. Christy says:

    THANK YOU!! I Love you guys! So glad I found this site! I’ve almost literally been banging my head against the wall. If I knew how to insert emojis, this post would be covered with hearts and smiley faces. :-)

    • Christy says:

      P.S. ~ HA! I did NOT know that my little colon and parentheses would actually turn into a smiley. LOL

  7. Linda Paul says:

    Oh yeah! You have just helped me solve a problem (forced single space paragraphs) that has vexed me for years!

  8. David M. Ebersole Sr. says:

    I am a subscriber to WP Beginner.
    I had a question concerning entering Engineering data for my product on my site. Spacing in the tables appeared too large on the page. I searched WordPress support and all I saw was snippy responses to the question of single line spacing.

    Your the first to answer the question, and it obviously was correct. Thank You.



  9. Mark says:

    What about on Android. The latest update has forced a double spacing (new paragraph). Not very good for poetry writers. Is there any way to revert it back to single?

  10. Cheryl says:

    I use Omega Theme and the control/enter does not work. Is there something else I can do. I cannot find post.p in the CSS file.

  11. Becky says:

    Very helpful, thank you!

  12. Adnan Khan says:

    Thanks, this most useful Tip for new wp user

  13. Tina Gleisner says:

    Thanks for the “shift” and enter for single line spacing as I’ve wanted to figure this out for years … and never got around to finding the solution.

  14. Ian says:

    This worked for me but the CSS doesn’t do anything in my page…

  15. A. Lougheed says:

    I’m searching everywhere for an answer … when I add a in the text editor, it is removed in the visual editor. Drives me crazy. Does wpbeginner have a recommendation?

    Should I add a plug-in to stop this?

    I tried a plugin years ago, but I had to go back and re-format every post.

    Any link with tutorial or advice is greatly appreciated!

  16. Jessica says:

    Whats the code for adjusting line height for one single post?

  17. Bharadwaj says:

    Thank you, Helpful

  18. Samadarshi says:

    Thank you for such wonderful articles
    I was completely lost when I started wordpress but now I have a pretty basic idea
    Thank u :)

  19. Neal Umphred says:

    Thanks! This helped me tighten up my posts—except for the first paragraph in each post. For some reason, the lines appear to be double-spaced. Is there a snippet of code that I could add to Edit CSS that would allow me to tighten them?

  20. Neal Umphred says:

    Thanks! Adding the snippet (.post p{line-height: 1.5em;}) to my Edit CSS made my text so much easier to read. Now, here’s my problem: the opening paragraph in each WordPress post has much larger line spacing than the rest of the paragraphs—and it is NOT affected by this piece of line-height code. Is there another snippet of code that I could add to Edit CSS that would tighten up those opening lines?

  21. tiffany says:

    Thank you so much. Your site is remarkable. It has helped me so much. Subscribed!! Please keep up the great work!!

  22. Joe Simmons says:

    Thank you! I didn’t know about the “shift+enter” thing either.

  23. Debby says:

    Shift + Enter. Who knew it was that simple! Thank you, thank you, thank you!

  24. Gamo Nana says:

    thanks for the single line spacing with SHIFT + Enter

  25. JE says:

    Thanks for the tutorial. Although, how can I adjust single paragraph line spacing? I have a 3 word title, centered and stacked in 3 lines. All of the lines have different font size, so the line spacings are inconsistent. I’ve been looking for a way to easily adjust through a text editor tool or plugin.

    Any ideas?

  26. Syed Balkhi says:

    We just used a browser search box which you can find by pressing Ctrl + F

  27. Mx says:

    Finding .post p you used a search box. Will you tell me how to find that search box? Thanx4

  28. Jun Han says:

    This is very helpful.

  29. says:

    it was my pet peeve until now ..thanks now i can space properly ..btw i made a list of hosts check itout

  30. Karen Surfy Mum says:

    Awesome!! I also have wanting to find out how to do this for ages!!! So simple when you know… cheers xxx

  31. Widdershins says:

    Oiiiiiiiiiiii!!! I’ve been trying to find out how to do that for yonks!!!!
    Thankyouthankyouthankyou :D

  32. fastow2012 says:

    “If you do not find the .post p tag, then simply create one.”
    Where? should i just copy/paste it anywhere in the css file?

  33. James says:

    I’ve always wondered how to do this. Thanks for the training.

  34. Valerie says:

    I’m not even a true “beginner” but there are gaps in my knowledge and you have just solved one of the most frustrating things about WP for this writer and Word user… Thank you for this and for all your fantastic info… I continue to learn great things from your posts and your site. Thanks and cheers to you!

  35. kelly says:

    almost four years of blogging and finally! :) so awesome, thanks!!

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.