How to Add a Line Break in WordPress (New Line Spacing)

Spread the love

 

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 line after paragraphs from the formatting options. However, WordPress block editor doesn’t have those buttons. In this article, we will show you how to easily add a line break in WordPress.

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 ways to feature space between blocks within the block editor, then we’ll cover the because of change the road spacing in your theme if you’re not happy with the results.

 

 

 

Adding Double Line Space Between Blocks

When you press the ‘Enter’ key on your keyboard to feature a line break, WordPress visual editor considers it as a replacement paragraph. This means that it’ll automatically add double line space granted that your theme has the styling for it (all good WordPress themes do).

So simply enter and press Enter after the road then type something else within the next line.

 

Adding double line spacing in WordPress

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

Adding Single Line Space ( Add a Line Break in WordPress )

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.

There are two ways to fix it:

  1. Using a plugin (the easy way)
  2. 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

 

 

 

Add paragraph spacing in WordPress with CSS Hero

 

You can see more details in our full CSS Hero review.

If you would like to form bigger changes to your theme, like moving a sidebar or adding a footer, then a haul and drop page builder plugin would be a far better option. A page builder plugin would also allow you to make small tweaks like changing font colors or adding line breaks in WordPress.

Don’t want to use a plugin, or simply got to make this one change? Then the manual CSS code option could be best for you.

Changing Paragraph Spacing Manually With CSS Code

To add line breaks manually without a plugin, you would like to feature some CSS to your theme.

CSS is essentially just like the formatting feature in Microsoft Word. Instead of clicking buttons, you’ll be writing some plain CSS code. It is not as scary as some beginners might imagine . CSS is extremely easy to know if you’re just following instructions.

To add custom CSS to your theme, you need to visit Appearance » Customize page. This will launch the WordPress theme customizer where you need to click on the ‘Additional CSS’ tab from the left column.

Adding your custom CSS

 

In the custom CSS box you need to add the following CSS code:

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

Adding custom CSS to increase line height

The CSS rule shown above will change the road spacing of paragraph to 1.5em. Em may be a unit of width for typography. We are using the .post class which WordPress automatically adds to the 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 would like to vary the paragraph spacing in WordPress (i.e double spacing), then you’d got to add padding.

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

Feel free to regulate the numbers to satisfy your needs.

We hope this text helped you add a line break in WordPress. You may also want to ascertain our recommendations on mastering the WordPress visual editor to write down content more efficiently in WordPress.

 

 

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Instagram and Facebook

 

WordPress Theme Editor


Spread the love

Leave a Comment

%d bloggers like this: