WordPress Block Editor – Spacer Block
This tutorial is part of our series on How To Use The WordPress Block Editor (Gutenberg).
- To learn more about using the WordPress block editor interface, go here: The WordPress Block Editor – Content Area
- To learn more about using blocks, see this tutorial: How To Use WordPress Block Editor Blocks
***
Spacer Block – Description
The Spacer block lets you add white space between blocks and customize its height.
How To Use The Spacer Block
In this section, we’ll cover:
- How to add a Spacer block to your content.
- How to edit and configure your Spacer block and block settings.
- How to remove the Spacer block from your content.
For more details on using blocks (e.g. how to move blocks around your content), see this tutorial: How To Use Blocks.
Adding A Spacer Block
To add a Spacer block to your content:
- Select a place in your content to add a spacer block (i.e. before or after), then either:
- Click on the ‘Add Block’ tool in the Editing Toolbar section and select the Spacer block (in Most Used or Design section),
- Add the Spacer block in the Content Area.
- Use the tools in the Spacer Block Editor or Block Settings section to adjust your space.
Let’s go through the above steps.
First, create a new post or page or open an existing post or page and either:
Click on the Add Block tool and select a Spacer block…
Or, select a Spacer block using the Inserter tool in the Content Area.
Either of the above methods will add a Spacer block to your content.
After adding a Spacer block to your content, you can:
- Edit the block to adjust the space.
- Save, publish, or update your post or page.
How To Edit A Spacer Block
To edit a Spacer block:
- Click inside the Spacer block to select it.
- Use the Block Editor tools to adjust the spacing using the resizing handle.
- Use the Block Settings to adjust the spacing by entering a height in pixels in the ‘Spacer Settings’ section.
Remember to update and publish your post or page to save your settings.
How To Remove A Spacer Block
To delete or remove a Spacer block from your content:
- Click inside the Spacer block to select it.
- Select the ‘More Options’ tool in the Block Editor.
- Click on ‘Remove block’.
- This will remove the Spacer block from your content.
Additionally…
- You can reposition your block using the ‘Move Up’ and ‘Move Down’ arrows or the Drag and Drop handle tool (if you need help with this step, see our tutorial on How To Use Blocks).
- You can also convert a Spacer block into a Reusable block.
Spacer Block Tools, Options & Settings
The Spacer block includes tools, options, and settings for:
- Spacer Block Editor
- Spacer Block Settings
Spacer Block Editor
The Spacer Block Editor displays:
- Block Type (See ‘Spacer Block – Additional Info’ section below.)
- Drag & Drop Tool
- Move Up and Down Tool
- More Options – See How To Use Blocks to learn how to use this section.
Spacer Block Settings
Spacer block settings include:
- Block description area
- Spacer Settings
- Adjust spacing height in pixels.
- Advanced Settings
- HTML Anchor – Create a unique web address to send users directly to this block using a unique jump link URL. To learn more about using HTML Anchors, see our tutorial on How To Use Blocks.
- Additional CSS Class(es) – This field lets you add multiple CSS classes to your block separated with spaces. This allows you to write custom CSS and style the block as you see fit. Note: This requires having knowledge of CSS (Cascading Style Sheets).
Spacer Block – Additional Info
You can convert a Spacer block into the following block types:
Installing plugins or themes on your site may also add new functionality, options, or settings to the Spacer block.
Congratulations! Now you know how to use the WordPress content editor’s Spacer block.
To learn how to use other blocks, go here: WordPress Block Editor – How To Use Blocks
***
Updated: July 5th, 2024