Setup & site building · Guide
How to Change Paragraph Spacing in WordPress (Step by Step)

Short answer
Select a paragraph block and adjust Margin under Dimensions or Line height under Typography for one block. For the whole site in a block theme, use Appearance, Editor, Styles and change Block spacing and line height. If your theme hides those controls, add a margin rule in Additional CSS.
Key takeaways
- Paragraph spacing means either the gap between paragraphs or line height inside them.
- Shift+Enter adds a line break without a full paragraph gap.
- Block themes control site-wide gaps through Styles, Layout, Block spacing.
- If spacing controls are missing, your theme has not enabled them in theme.json.
- A short Additional CSS rule works in any theme.
- Line height around 1.5 to 1.8 is comfortable for most body text.
How do you change paragraph spacing in WordPress?
You change paragraph spacing with the Dimensions and Typography panels in the block editor for single blocks, Styles in the Site Editor for the whole site, or a short CSS rule in Additional CSS.
Paragraph spacing actually means two different things, and it helps to know which one you want:
- Space between paragraphs, controlled by margins or block spacing.
- Space between lines inside a paragraph, controlled by line height.
Most complaints are about the first one, such as paragraphs feeling crammed together or having big gaps between them. This guide covers both, from the quickest fix to the most site-wide option.
Why is the spacing between paragraphs wrong in the first place?
Paragraph spacing comes from your theme's CSS, so different themes show very different gaps, and pasted content or line breaks can add extra space.
Common causes:
- Theme defaults. Each theme sets its own margins and line height.
- Pasting from Word or Google Docs. This can bring hidden formatting or empty paragraphs.
- Empty paragraph blocks. Pressing Enter twice creates a blank block that adds a full gap.
- Using Enter instead of Shift+Enter. Enter starts a new paragraph with full spacing; Shift+Enter adds a line break inside the same paragraph.
- Spacer blocks added and forgotten.
Before changing settings, check the content itself. Delete empty blocks and use the List View in the editor to spot spacer blocks.
A quick way to see what is happening is to right-click a paragraph on the live page and choose Inspect. The browser shows which CSS rule sets the margin and which file it comes from. That tells you whether the theme, a plugin or a page builder is in charge.
If several rules compete, the most specific one wins. Knowing this saves time, because adding a weaker rule elsewhere will have no visible effect.
How do you add a line break without paragraph spacing?
Press Shift+Enter instead of Enter to start a new line inside the same paragraph block, which avoids the extra gap between paragraphs.
This is useful for addresses, poems, or short lines that belong together:
- Place your cursor where you want the new line.
- Hold Shift and press Enter.
- The text moves to a new line in the same block.
This does not change site-wide spacing. It just stops WordPress from treating each line as a separate paragraph. The Paragraph block documentation lists the other paragraph options.
Shift+Enter inserts a single HTML line break. Screen readers read it as part of the same paragraph, which is correct for lines that belong together but wrong for separate ideas. Use real paragraphs for separate thoughts.
How do you change spacing for one paragraph block?
Select the paragraph block, open the Styles tab in the block settings sidebar, and adjust Margin under Dimensions, or Line height under Typography.
Step by step:
- Open the post or page in the block editor.
- Click the paragraph you want to change.
- In the right sidebar, open the block settings and look for the Styles tab (the half-filled circle icon).
- Under Dimensions, click the options menu and enable Margin if it is hidden.
- Set the top or bottom margin using the slider or a value.
- Under Typography, open the options menu and enable Line height to change spacing between lines.
- Click Update or Save.
If you do not see Margin or Line height, your theme has not turned those controls on. Themes enable them through theme.json. In that case, use the CSS method below.
How do you change spacing between all blocks in a group?
Select the parent Group, Column or Post Content block and change Block spacing under Dimensions to set the gap between every block inside it.
Block spacing (sometimes called the block gap) controls the vertical space between child blocks. Changing it on a Group block affects only that group's contents.
This is handy for a section such as a feature list, where you want tighter spacing than the rest of the page. Our guide on using the Group block and the block editor explains how blocks nest.
How do you change paragraph spacing site-wide in a block theme?
Go to Appearance > Editor > Styles, then open Layout to set Block spacing and Typography > Text to set line height for the whole site.
Detailed steps:
- Go to Appearance > Editor.
- Click Styles, then the edit icon to open the Styles panel.
- Open Layout and change Block spacing. This sets the default gap between blocks across the site.
- Go back and open Typography > Text to set a site-wide Line height.
- For paragraph-only changes, open Blocks > Paragraph and adjust its dimensions and typography.
- Click Save.
These changes are saved as global styles and override your theme's defaults without editing files. The Site Editor documentation describes the Styles panel in more detail.
To undo your changes later, open the same Styles panel and use the reset option. WordPress then goes back to the values defined by your theme, so you can experiment without worrying about losing the original design.
Developers can set the same values in theme.json through the spacing and typography settings described in the global settings and styles reference. Our guide to using theme.json shows real examples.
How do you change paragraph spacing with CSS?
Add a rule such as .entry-content p { margin-bottom: 1.2em; } in Appearance > Customize > Additional CSS, or in the Site Editor's custom CSS, and adjust the value until it looks right.
A basic example that sets paragraph gaps and line height:
.entry-content p {
margin-top: 0;
margin-bottom: 1.2em;
line-height: 1.7;
}
Notes on using this:
- The selector depends on your theme. Many themes wrap post content in .entry-content, but some use other class names. Inspect a paragraph with your browser's developer tools to find the right one.
- Use em units so spacing scales with font size.
- Block themes may control gaps with block spacing instead of margins. If margin changes do nothing, try the Block spacing setting first.
MDN explains the margin property and line-height property if you want to understand the values.
If your CSS changes do not appear, a cache is usually the reason. Our guide on CSS changes not showing walks through the fixes.
Which method should you use?
Use Shift+Enter for line breaks, block settings for one-off tweaks, Styles for site-wide changes in block themes, and CSS when your theme hides the controls.
| Method | Scope | Best for |
|---|---|---|
| Shift+Enter | One line | Addresses, short lines |
| Block Margin | One paragraph | A single awkward gap |
| Group Block spacing | One section | Tighter or looser sections |
| Styles > Layout | Whole site | Default gap in block themes |
| Typography line height | Block or site | Lines within paragraphs |
| Additional CSS | Whole site | Classic themes or hidden controls |
What spacing values are easy to read?
A line height around 1.5 to 1.8 and a paragraph gap of roughly one line are comfortable for most body text, but test on both desktop and mobile.
Readability guidance supports generous spacing. The W3C's text spacing success criterion refers to line height of at least 1.5 times the font size and paragraph spacing of at least 2 times the font size as values users should be able to apply without breaking your layout.
Font size and spacing work together. If you increase font size, check the spacing again. Our guide to increasing font size in WordPress covers the size side.
What if paragraph spacing looks different on mobile?
Different spacing on mobile usually comes from theme media queries, a page builder's responsive settings, or a cached mobile version of the page.
Check these:
- Look for responsive spacing controls in your theme or page builder.
- Clear any cache, including mobile-specific cache.
- Test in a private browser window on the phone.
Our guide on adjusting WordPress for mobile has more mobile layout fixes.
How do you fix spacing in classic themes or the Classic Editor?
In classic themes, change spacing with Additional CSS, and in the Classic Editor use Shift+Enter for single line breaks and avoid empty paragraphs.
The Classic Editor converts double line breaks into paragraphs automatically. Extra blank lines can turn into empty paragraph tags, which add space. Switch to the Text tab to see and remove them.
For theme-wide control, the CSS approach above works in any theme. Put the rule in Additional CSS or a child theme stylesheet so theme updates do not remove it.
Frequently asked questions
Why is there a big gap between paragraphs in WordPress?
Your theme sets the margin or block spacing between paragraphs. Empty paragraph blocks, spacer blocks or pasted formatting can add more. Remove empty blocks first, then reduce Block spacing in Styles or add a smaller margin with CSS.
How do I reduce line spacing in WordPress?
Select the paragraph and lower Line height under Typography in the block settings. For the whole site, set line height in Appearance, Editor, Styles, Typography. If the option is missing, use a line-height rule in Additional CSS.
Why can't I see margin or line height settings?
Those controls only appear when your theme enables them in theme.json, or when you turn them on from the panel's options menu. Classic themes often do not support them at all, so CSS is the way to change spacing there.
Does paragraph spacing affect SEO?
Not directly. Search engines do not rank pages on CSS spacing. Good spacing improves readability, which can help visitors stay and read, and readable pages are better for users on mobile and desktop alike.
How do I change spacing in Elementor?
In Elementor, select the text widget and use the Advanced tab for margin and padding, or the Style tab for typography and line height. Elementor's global settings also control default paragraph spacing for the site.
Sources
- Paragraph Block WordPress.org
- Site Editor WordPress.org
- Global Settings and Styles WordPress Developer Resources
- margin MDN Web Docs
- Understanding Text Spacing W3C
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


