How to Add a Single/Double Line Spacing in WordPress

Are you looking for the most suitable way to add a single/double line spacing in WordPress? Look no further: this article will bring you a lot of flexible ways to help you resolve this problem without effort. Let’s dive in.…

How to add a Single/Double Line Spacing in WordPress?

Are you looking for the most suitable way to add a single/double line spacing in WordPress? Look no further: this article will bring you a lot of flexible ways to help you resolve this problem without effort. Let’s dive in.

Why should you add a single/double line spacing in WordPress?

There is no denying that your posts/pages’ formatting and overall style also play an essential part in creating a visual and reliable blog. Proper line spacing makes it easier for your website visitors to find the important content they are looking for. Thanks to that, it will attract more visitors and increase the traffic on your website. Moreover, it also improves your content’s readability as well as its SEO structure.

How to add a new line spacing in WordPress?

Adding a new line spacing in WordPress is a simple task, and there are many ways to help you handle this matter. However, in today’s article, we are going to demonstrate the most prevalent methods to help you quickly do this task yourself, including:

  • Adding a single  or double line spacing directly in the WP visual editor
  • Changing paragraph spacing manually with CSS code
  • Using a plugin to change line spacing

Now, let’s dive into the following methods and find your favorite one.

Add a single or double line spacing in the WordPress visual editor

  • Double spacing

By default, in the WordPress visual editor when you hit the “Enter” button on your keyboard, it will automatically add a double line space. This makes it easy and quick to generate a new paragraph with proper double spacing.

Now, simply press the Enter key at the end of the first line and type something in the next line.

By doing that, you will see a clear distinction between paragraphs.

photo9 2

  • Single spacing

As its name implies, this is useful in some situations, for example when you want to include your address.

To insert a single line space in WordPress, just press Shift + Enter at the end of any line.

add single/double line spacing in WordPress 5

Changing paragraph spacing manually with CSS code

Although WordPress allows you to add single/double line spacing with keyboard shortcuts, generating multiple gaps between paragraphs and sentences with the default spacing can give visitors a feeling of emptiness in your blog. In addition, it also creates wasted space in your content. Therefore, we will share with you how to change paragraph spacing manually to suit your requirements.

In order to change paragraph spacing in WordPress, you can add some CSS to your theme. This method is not too complicated; it only requires some coding knowledge.

First of all, you need to go to the Appearance > Customize page. This will bring you to the WordPress Theme customizer. Then click on the Additional CSS option at the bottom of the left-hand sidebar.

add single/double line spacing in WordPress 4

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

.post p{line-height: Xem;}

Here, “X” is the number of ems that you want to reserve for each line. The “em” is a unit of width for typography and 1em  equals 16px font size. We are utilizing the .post class that tells WordPress to apply the settings only to the content area of all posts.

In our case, we are going to set the line spacing of our paragraph content to 4ems. You can see the changes on the live preview page.

add single/double line spacing in WordPress 3

However, the CSS code above only changes the spacing between every single line. If you want to change the spacing between paragraphs, you should add padding. You can follow the CSS code below:

.post p {
line-height: Xem;
padding-bottom: Xpx
}

Similarly, you can change “X” into any number of px, depending on your purpose.

add single/double line spacing in WordPress 2

Once you are pleased with the result in the preview area, you can click on the Publish button to save the changes.

Changing line spacing with a plugin

Spacer is considered one of the easiest and most common WordPress plugins that helps you create an unlimited number of spacers, dividers, and section break presets. You can choose which Spacer you want to add to your content via the Spacer button directly in the WordPress visual editor.

What are you waiting for? Now, let’s follow the steps below.

Step 1: Install and activate the plugin

As with other WordPress plugins, to use this plugin, you first need to install it. Go to Plugins > Add New and then type the plugin’s name in the search bar. You will then see the plugin that you are looking for displayed at the top of the results. Click on the Install Now button and Activate it.

image12 1

Step 2: Configure the settings

Now, let’s visit the Settings > Spacer page on your dashboard.

You will see that there are 5 tabs at the top of the page including:

  •  The Default tab plays an important role as the main default configuration for the spacers used. If you don’t install other spacers or partitions, it is the only one that can be added. In addition, you can also configure the main spacer to suit your requirements.

image13

  • The Suggestion box tab enables you to type your recommendations for the plugin to the developers
  • In the Addon-ons tab, there are a lot of available add-ons that you can consider purchasing
  • The licenses tab permits you to put in licenses for the pro version after you have purchased an add-on.

Step 3: Add Spacer

In order to add a spacer to your library, firstly you need to click on the Add Spacers button.

image14

Here you can set the Spacer Title to help you easily distinguish between spacers when you add them to a post/page later. In addition, you need to fill out the options for your new spacers.

image15

After finishing, scroll down to the bottom of the page and click on the Save Changes button. Your new spacer will then be automatically inserted into your library.

image16 2

Step 4: Add line spacing to your post/page

Now, you need to go to the post/page that you want to edit or start with a new post/page. In your toolbar, you will see the Add a Spacer button added. When you want to add one of the spacers to your content, simply click on this button and choose one of your spacers from the drop-down.

image13 1

You can choose which spacer you want to add through the spacer button flexibly.

add single/double line spacing in WordPress 1

Wrap up

We have just shared the three simplest and most effective methods to help you add a single/double line spacing in WordPress. We hope that you can choose the most suitable one for your website. In case you have any queries or questions about the mentioned methods, don’t hesitate to leave a comment below.

Moreover, there are tons of appealing, professional, and responsive themes and templates at our free WordPress Themes. If you are planning to build an eye-catching website, drop by our website right now.

Build it with a template

Start from a finished design: Joomla templates, WordPress themes or the AI-ready block themes. Every template has a free version and a live demo.

Free download

We'll send the link, setup tips and update notices, and you can reach us anytime through our AI assistant and contact form.

The download starts at once. We email you the link and ask you to confirm your address. Privacy policy.