How to change line spacing in wordpress

New Page

How to Change Text Spacing in WordPress

By / WordPress Basics Jeremy Holcombe

Sharing via:

  • Facebook
  • Twitter
  • LinkedIn

The WordPress editor offers many features. Whether you use the visual editor or the text editor itself, there are many things you can accomplish without the help of additional plugins. However, sometimes line spacing and separators can be a problem if you don’t have additional help.

Have you ever written and designed a post or page in WordPress and wished you could add different types of WordPress line spacing? The default editor does not allow this. You have the option of placing single- or double-spaced text elements only in those particular height increments.

Single Space – As the name suggests. Only one line is inserted in the editor when using this function. To insert a single line in WordPress, click Shift+Enter after the end of any line.

Double Space – By default, the WordPress visual editor will provide you with a double space line each time you press the “Enter” button. This makes it quick and easy to create a new paragraph or scroll down to add content with proper double spacing.

If you want to add different line heights, you cannot do so in the default editor. However, now you can give yourself the option to change line spacing in WordPress to the specific spacing height you want. You can achieve this by using a software plugin which we will discuss in more detail below.

Why Change Line Spacing in WordPress?

The format and general layout of your posts and pages are always important. Proper line spacing can make it easier for your website users to find certain things in the post or page.

If you learn how to properly manage WordPress line spacing, then you will be better equipped to distinguish between paragraphs and present a more graceful and elegant message. This alone will lead to more readers and help to further increase your website views.

Using short sentences and paragraphs is a must when it comes to readability and SEO structure in a post or page. If you have the ability to easily add line spacing variables in WordPress, some spacing formatting can be done quickly without having to enter any CSS code into your site.

To be able to achieve this, you need to use a powerful plugin or the already mentioned CSS styling code. However, I found a tool that will give you the ability to add as many different line spacing inserts as you want using a simple WordPress space shortcode.

Let’s take a look at the plugin and see everything it does.


space complement spacer plugin

Spacer is a plugin that gives you the ability to add different line spacing options to your WordPress editor. You can also enter negative spaces to allow you to shift the content up if you wish.

El complemento Spacer le permite crear tantas opciones diferentes de interlineado como desee. Una vez que se activa el complemento, agrega un botón a su editor. Vas a crear todas las opciones de interlineado que quieras. Y luego, cuando desee insertar uno, haga clic en el botón y elija el que desee.

Nota: Al momento de escribir este artículo, el complemento funciona bien si está utilizando el editor de bloques de Gutenberg . Agrega un botón al bloque “Párrafo” para que pueda acceder. Por favor, compruebe eso cuando lo instale.

Cree su propia biblioteca única de espaciadores y saltos de sección. Una vez que los hayas creado, los tendrás siempre a tu disposición y podrás agregarlos en cualquier momento con solo hacer clic en un botón.

El complemento es liviano y es muy fácil de instalar y usar. No es difícil de configurar y ofrece una gran funcionalidad que incluye:

  • You can create an unlimited amount of spacers, dividers, and section breaks.
  • View your spacer as you build using the live preview tool.
  • Easily choose the spacer you want to add using the automatically installed editor button.
  • Compatible with WordPress Multisite.
  • Adds a button to Gutenberg block editor.

The plugin also allows for spacing and line adjustments for mobile. So you can create your spacers and they will look perfect on any device.

Basically, the plugin gives you everything you need and more to add and use an unlimited amount of spacers. Let’s take a look at how to install the plugin and get it going on your website.

Install and Activate Spacer Plugin

In order to add different spacers and adjust line spacing how you see fit, you first need to install and activate the plugin. You can do this by going to the Plugins page of your WordPress admin dashboard and searching for it by name.

Install and Activate the Line Spacing Plugin INSTALL and activate the line spacing plugin

Once the plugin has been installed and activated, click on Settings > Spacer. You will find this in the left side menu of your WordPress admin dashboard.

Haga clic in configuración y luego en espaciador Click settings then spacer

This will take you to the main settings page for the plugin. Here is where you can configure it how you want and add spacers as well. Let’s go over that together.

Configure Spacer Settings and Add a Spacer

At this point, you should be on the settings page for the plugin. You will see the main setup with five tabs. These include:

  • Default
  • Add Spacers
  • Suggestion Box
  • Add-Ons
  • Licenses

Let’s take a look at the “default” tab.


The “Default” tab acts as the main default settings for the included spacer. This means that if you have no other spacers or dividers added, this will be the main and only one available to insert.

Go ahead and configure the main spacer how you see fit.

Configuration of predetermined interlineado Default line spacing settings

The suggestion box tab allows you to enter suggestions for the plugin to the developers. The add-ons tab shows you available add-ons you may want to consider. The licenses tab allows you to put in licenses for pro versions of the plugin if needed. You can check all those out of you wish.

Let’s add a spacer together.

Add a Spacer

In order to add a spacer to your library, you want to click on the “Add Spacers” tab. From there, you simply fill out all of the options available to create a spacer the way you want.

Aggregate a spacer Add a spacer

Don’t forget to name your spacer so when you go to add it in a post or page later you know which one you are adding. Once you are done filling out the options for your new spacer, click on the “Save Changes” button at the bottom of the page and your new spacer will be automatically added to your library.

Guardar cambios para las options de interlineado Save changes for line spacing options

You can repeat this process to add as many spacers as you want.

Add WordPress Line Spacing in Post or Page

The final step to this process is actually adding a spacer within the post or page you are editing. Remember, the process is the same for either and it is very simple.

Go to your post or page section and open up a new one. You will see that a button to add a spacer has now been added to your editor. Whenever you want to add one of the spacers you created, simply click on that button and your library of added spacers will pop up.

Agregar espaciador desde el editor Add spacer from editor

Choose the spacer you want and you are done.

Final Thoughts

Having the ability to add different types of line spacing and dividers on your WordPress site is important. This is especially true if you are trying to open up your content for people to view in different aspects.

While the default WordPress editor does allow for a decent amount of functionality, it only gives you the single and double space line options. Adding the Spacer plugin will give you the ability to add as many different spacers and dividers as you want each with varying pixel heights.

This should allow you to add custom line spacing styles and give you a lot more functionality when it comes to layout and design.

Have you been able to get away with the line spacing options that the WordPress default editor gives? Do you find that the line spacing options you can apply to your posts and pages by using the Spacer plugin give you a lot more freedom?

Share via:

  • Facebook
  • Twitter
  • LinkedIn

Support » Plugin: Elementor Website Builder » line spacing in text editor elementor

line spacing in text editor elementor

  • Resolved 02ef6192461b0367494a1094f552d706ballemi


    3 years, 7 months ago

    Hi, Line spacing in my text box is too large I would to adjust the spacing between lines in a text box. Is there a way to do it ? (I only succeeded to have what I want using a html box, but it is veeerrryyyy long ! Thank you for your help !

Viewing 3 replies – 1 through 3 (of 3 total)

  • 075a4f0a3430555d34c6cd4444bf4455cavalierlife


    3 years, 6 months ago

    Go to the Text Editor widget’s Style tab, click on Typography, and adjust the Line Height there.



    2 years, 3 months ago

    Typography > Line Height does not do the trick. It always wants more space after a line of text, and when you adjust line height, the space after the text gets proportionally larger.



    2 years, 3 months ago

    This in Text Editor > Advanced > custom CSS works:

    p {margin-bottom: 0px; }

Viewing 3 replies – 1 through 3 (of 3 total)

  • The topic ‘line spacing in text editor elementor’ is closed to new replies.

Foto de una mujer en un luminoso espacio de coworking trabajando para arreglar HTML en una laptop Photo of woman in bright coworking space working to fix HTML on laptop

How to Fix WordPress Formatting Issues

Posted in Marketing, Performance, WordPress by Samantha Rodriguez

Last updated on July 6th, 2022

WordPress’ visual editor is perfect for writing up content quickly, and making sure that it’s formatted to your exact requirements. However, some people choose to use a third-party solution instead, such as Microsoft Word or Google Docs. The problem is that this can introduce issues when pasting your content into a WordPress blog post.

So, why is WordPress post format not showing the same as your original doc? It’s important to be careful when copying over external content, and to take care of any formatting errors that might play havoc with your page layouts. Fortunately, WordPress offers plenty of ways to increase your efficiency when it comes to formatting content correctly.

This post will first look at how WordPress handles third-party content within the editor. Then we’ll introduce some shortcuts that you can use to speed up the creation process. Let’s get started!

Table of Contents

1. Copying From Word to WordPress

2. Formatting Headings in WordPress

3. Formatting Shortcuts in WordPress

4. WordPress Formatting Plugins

4.1. TinyMCE Advanced

4.2. wp-Typography

5. Spacing and Line Break Errors in WordPress

6. WP Engine for WordPress Assistance

Copying From Word to WordPress

Many WordPress users write their content directly into the standard post without a hitch. However, others have a preferred text editor they wish to use, such as Microsoft Word, Google Docs, Hemingway, and so on.

When pasting in content from these tools, however, you can end up introducing formatting issues. For example, you may see rogue code, or extra spacing between characters. This can be influenced by the WordPress theme, post format, or page template.

To minimize this issue, whenever you paste content into WordPress, you should switch to the Text editor by clicking on the dedicated tab in your post or page:

fix common wordpress errors fix common wordpress errors

After pasting in the content, take a close look at your edit screen and do the following:

  1. Seek out and delete any rogue line breaks (designated by the tag  ).
  2. Delete all <span> tags, and their corresponding closing tags. They’re not required by WordPress at all, and can often manifest as differently-formatted text in the Visual editor.
  3. Make sure lists are formatted correctly, with each entry on a new line.

We’ll touch on some of these points a little more later on. For now, once you’ve rooted out these formatting issues, check out your Visual editor and the front end of your page or post. You should find that your content’s formatting is back to normal.

Formatting Headings in WordPress

As you’re probably aware, WordPress themes can have different header sizes. This is largely a cosmetic detail, and is related to the overall design of the theme. However, copying over content from an external text editor can overwrite your default header styles.

Fortunately, this can be easily changed within WordPress via two methods. First, you can use the heading drop-down menu within the Visual editor to select the appropriate heading type:

how to correct errors in wordpress publications how to fix errors in wordpress posts

Alternatively, you can switch to the Text editor and wrap headings in dedicated HTML tags. To do this, you’ll want to add <hX></hX> tags around each heading, where X represents the heading number (usually 1–4):

How to solve WordPress formatting problems How to Fix WordPress Formatting Issues

Both approaches are valid, although those more comfortable with HTML will likely gravitate to the latter option. Of course, if you write your WordPress post in an HTML format from the beginning, you can simply paste the code into the Text editor, and your post will be perfectly formatted.

Formatting Shortcuts in WordPress

Shortcuts are commonplace within many programs and apps, and WordPress is no exception. These shortcuts are a great way of saving time when creating your content, and are automatically enabled.

For example, the ‘traditional’ shortcuts for cutting, copying, and pasting can all be used, as can the ones for basic formatting such as italics and bold text. Links can also be added using CTRL-K on Windows, or Command–K on Mac.

As for specific WordPress options, we’re partial to the adapted Markdown formatting shortcuts you can employ. For example:

  1. Use pound signs (#) to designate a heading, typing in a number of symbols that matches the desired heading level (i.e. a level-3 heading would be ###).
  2. Create an ordered list by simply typing 1. or 1).
  3. Start an unordered list by using an asterisk (*) or a hyphen (-).

También puede activar accesos directos para la moderación de comentarios, navegando a Usuarios > Su perfil en su panel de WordPress:

format atajos in wordpress formatting shortcuts in wordpress

Hay muchos más atajos a su disposición, pero es probable que estos sean los que use con más frecuencia.

WordPress layout plugins

Of course, WordPress offers many plugins that can help you properly format your posts and pages. Let’s take a look at two of our favorites.

TinyMCE Advanced

wordpress formatting plugin wordpress format plugin

The first is TinyMCE Advanced. As the name suggests, this plugin adds to the default TinyMCE editor built into WordPress. It offers a number of options, including additional list formats, the ability to create and edit tables, and a way to set font family and size directly from the editor.

  • Pros: This plugin integrates seamlessly with WordPress, as you’d expect, and includes a number of handy features that users will need.
  • Cons: Although TinyMCE Advanced is a solid plugin, developers who want much more advanced functionality may need something more robust.
  • Cost: TinyMCE Advanced is free to download from the plugin directory.


fix-wp-errors-resource7 fix-wp-errors-resource7

We mentioned that if you need advanced formatting functionality, you’ll probably want a more comprehensive plugin. This solution, wp-Typography, might be what you’re looking for.

This WordPress plugin provides character replacement options for quotes, ellipses, mark symbols and more. There are also developer-specific features, like a series of CSS hooks to help you design other characters accordingly.

  • Pros: For developers, this plugin will provide lots of character replacement and character formatting options, which can be changed to your liking.
  • Cons: This tool may not give you full control over what you want to format. It is also a very cumbersome solution for developers to format text.
  • Cost: As with the plugin above, wp-Typography is free on the plugin directory.

Spacing and Line Break Errors in WordPress

Earlier, we talked about line break and spacing errors that can occur when you copy content to a WordPress page from an external editor. These are quite common and expected when migrating content between different apps and programs.

Although you can go to the text editor and manually delete any instances you find, there is a faster method. Here are the steps you will need to follow:

  1. Click the Toggle button on the visual editor toolbar to display additional formatting options.
  2. Highlight all of your content (or at least content with line breaks and spacing errors if you can spot them).
  3. Click the Clear Formatting button (looks like an eraser).

This will remove the malicious <span> tags and should also remove all spacing and line break issues. However, sometimes not all instances are detected, so it’s worth looking back in the text editor to make sure everything looks good.

WP Engine support for WordPress

Regardless of your WordPress skill level, there is always something new to learn. Now that you know how to properly handle formatting, you might want to think about other ways to expand your knowledge.

WP Engine is not just a leader in WordPress web hosting. We also offer a wealth of educational articles and guides in our Support Garage and Resource Center. Feel free to browse the archives and see what you can learn today! If you need additional help with WordPress, please contact our award-winning support team, available 24/7.

Video How to change line spacing in wordpress

Related Posts

How to add seo keywords in wordpress

Contents1 Cómo agregar palabras clave de SEO en WordPress (aumentar el CTR y las clasificaciones)1.1 Post Title1.2 Headline1.3 Header Tags1.4 Introduction and Conclusion1.5 Body Copy1.6 URL1.7 Meta…

How to embed google calendar into wordpress

Contents1 How to Add a Google Calendar in WordPress (Step by Step)2 Add a Google calendar to your website3 calendario de Google3.1 Versatile plans and pricing4 Video…

How to change the logo in wordpress

Contents1 How to Add a Custom Logo to Your Site Header2 Site Logo2.1 Planes y precios versátiles3 Add, remove or edit a custom logo4 Video How to…

How to add a popup on wordpress

Contents1 Easily create a WordPress emergent form (2 forms)1.1 ¿Por qué usar un formulario emergente de WordPress?1.2 Método #1: Crear un formulario emergente con OptinMonster + WPForms1.3…

How to roll back wordpress version

Contents1 How to Revert WordPress: Undo WordPress Updates (Easy Way)2 How to Downgrade WordPress & Roll Back to a Previous Version2.1 1. A WordPress update included significant changes…

How to rollback wordpress version

Contents1 How to Downgrade WordPress and Revert to an Older Version1.1 1. A WordPress update included significant changes that are not compatible with your theme or plugins1.2…