Do you want to add a line break in WordPress, or adjust the line spacing between blocks?
In most Word processors, you can easily add extra blank line space by pressing the enter key a few times. You can also create double-spaced lines after paragraphs from the formatting options. However, the WordPress block editor doesn’t have those buttons.
In this article, we will show you how to easily add a line break 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 space between blocks in the block 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 Between Blocks
When you press the Enter key for Windows or the Return key for Mac on your keyboard to add a line break, WordPress 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 (all good WordPress themes do).
Simply go to the content editor and press the Enter or Return key after the line and then type something else in the next line.
By simply doing that, based on your theme styling, you should see a clear distinction between paragraphs.
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.
In this case, you need to press the SHIFT + ENTER key on Windows or the SHIFT + RETURN key on Mac.
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.
There are two ways to fix it:
- Using a plugin (the easy way)
- Manually with CSS code (more advanced)
Let’s take a look at the easy method first.
Adding Line Spacing Using a Plugin
If you want to make style changes to your theme without having to learn code, using a plugin like CSS Hero is the best way to do that.
CSS Hero makes it easy to change the design of your WordPress site without knowing any code.
You can see more details in our full CSS Hero review.
If you want to make bigger changes to your theme, like moving a sidebar or adding a footer, then a drag and drop page builder plugin would be a better option. A page builder plugin would also let you make small tweaks like changing font colors or adding line breaks in WordPress.
Don’t want to use a plugin, or just need to make this one change? Then the manual CSS code option might be best for you.
Changing Paragraph Spacing Manually With CSS Code
To add line breaks manually without a plugin, you need to add some CSS to your theme.
CSS is basically like the formatting feature in Microsoft Word. Instead of clicking buttons, you will be writing some plain CSS code. It is not as scary as some beginners may think. CSS is very easy to understand if you are just following instructions.
To add custom CSS to your theme, you need to visit the Appearance » Customize page. This will launch the WordPress theme customizer where you need to click on the ‘Additional CSS’ tab from the left column.
In the custom CSS box you need to add the following CSS code:
.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 paragraph spacing in WordPress (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 a line break in WordPress. You may also want to see our guide on how to start a WordPress blog and the best email marketing services for small businesses.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
Deepak Sahani says
Superb video & post solved my query.
WPBeginner Support says
Glad our guide could be helpful!
Admin
Jennyfer says
Thank you very much for thus information! Very useful. Just what I was looking for.
WPBeginner Support says
Glad our guide was helpful
Admin
Colleen Cochran says
I finally figured out the shift-enter thing for poetry single space lines, but when the post is published and emailed to followers, it loses formatting and all the lines run together. How do I fix that?
WPBeginner Support says
You would want to check with the tool being used to send the notification for the styling for fixing that issue.
Admin
Luiz says
Thank you! Very useful!
WPBeginner Support says
You’re welcome
Admin
Robin says
So helpful! Thank you!!
WPBeginner Support says
You’re welcome
Admin
Dhirendra says
Any option for reduce image gap…
WPBeginner Support says
It would depend on the specific image but for a starting point to find what is causing the gap you would want to take a look at our guide below:
https://www.wpbeginner.com/wp-tutorials/basics-of-inspect-element-with-your-wordpress-site/
Admin
jan van den hoed says
Thanks for the explanation. One question though. How can i do the same thing on a smartphone. I’m editing my blog on the way and do not have a laptop available. i tried to do shift enter but that did not work
WPBeginner Support says
Due to the limitations of mobile, you would likely need to use the CSS method.
Admin
Val says
Thank you so much, such a great help. I agonized over spacing!
WPBeginner Support says
Glad our guide was helpful
Admin
Stephen says
Thanks, it helped a great deal.
WPBeginner Support says
Glad our article was helpful
Admin
Douglas Daniel says
To change the CSS it’s telling me I have to purchase a premium plan. Am I out of luck?
WPBeginner Support says
It sounds like you are on WordPress.com and this tutorial is for WordPress.org sites:
https://www.wpbeginner.com/beginners-guide/self-hosted-wordpress-org-vs-free-wordpress-com-infograph/
you would sadly be limited to the other options such as shift+enter to single line space the content.
Admin
SOO says
Thank You! Helpful!!
WPBeginner Support says
You’re welcome, glad our article could help
Admin
Rebecca says
I did not work for me. Any reasons it would not work?
WPBeginner Support says
If you’re using a page builder plugin they may have a different method for the single/double line spacing. Otherwise, it could be a plugin/theme conflict where you would need to disable your plugins and/or swap your theme to check
Admin
Tim G says
I would like to reduce the spacing between normal paragraph lines — IMHO, there is too much white space by default. I’d also like to add a half line at the end of a paragraph, rather than a full line: WordPress by default seems to just do the equivalent of a double carriage return which is rather twentieth century and doesn’t emulate what Word can do. Any ideas?
WPBeginner Support says
You would want to reach out to the support for your specific theme and they should be able to tell you what CSS needs to be added to reduce your line spacing
Admin
sofar ahmad says
TQ so much
very helpful
WPBeginner Support says
Glad our guide could be helpful
Admin
Sumeet says
thanks that was what i was looking for it helped …
WPBeginner Support says
Glad our article helped
Admin
Jen says
God bless you! I’m so grateful for you posting this with the CSS! Who knew that’s all it took for me to change the spacing! I’ve been looking for something like this for a long time! Thank you so much!
WPBeginner Support says
Glad our article could help you
Admin
Kathy says
I am using the “shift” enter method but it does not allow for different size font when I do. Is there a work around?
WPBeginner Support says
Hi Kathy,
Please see our guide on how to change font sizes in WordPress.
Admin
Lora Staples says
GREAT video. Loved the content, pacing, and tone of the speaker. THANKS!
Kunal Khandelwal says
Thank you so much for this suggestion. Didn’t know it was so easy