Title: Flexible Spacer Block
Author: Aki Hamano
Published: <strong>ژانویه 28, 2021</strong>
Last modified: نوامبر 5, 2026

---

Search plugins

![](https://ps.w.org/flexible-spacer-block/assets/banner-772x250.png?rev=2658109)

![](https://ps.w.org/flexible-spacer-block/assets/icon-256x256.png?rev=2658109)

# Flexible Spacer Block

 By [Aki Hamano](https://profiles.wordpress.org/wildworks/)

[Download](https://downloads.wordpress.org/plugin/flexible-spacer-block.2.10.0.zip)

[Live Preview](https://azb.wordpress.org/plugins/flexible-spacer-block/?preview=1)

 * [Details](https://azb.wordpress.org/plugins/flexible-spacer-block/#description)
 * [Reviews](https://azb.wordpress.org/plugins/flexible-spacer-block/#reviews)
 *  [Installation](https://azb.wordpress.org/plugins/flexible-spacer-block/#installation)
 * [Development](https://azb.wordpress.org/plugins/flexible-spacer-block/#developers)

 [Support](https://wordpress.org/support/plugin/flexible-spacer-block/)

## Description

Flexible Spacer Block switches the height of the spacer according to the device’s
screen width (breakpoints). This block has two adjustable breakpoints, so you can
set a separate spacer height for smartphones, tablets, and desktops. These heights
can be changed individually or all at once.

You can also set “negative space (negative margin)” instead of normal space. In 
addition, the block can be transformed from and to the core Spacer block.

### About negative space

“**Negative space**” reduces the space between the blocks above and below the spacer,
and can even make them overlap.

If unintended overlap occurs, add a CSS class named “**fsb-style-show-front**” to
the block you want to display in front. To apply the CSS class, select the block
in the WordPress editor, open the “Advanced” panel in the block settings sidebar,
and enter the class in the “Additional CSS class(es)” field.

### Resources

#### Image used in screenshots

 * License: CC0 Public Domain
 * Source: https://pxhere.com/ja/photo/245

## Screenshots

[⌊In the block editor⌉⌊In the block editor⌉[

In the block editor

[⌊Settings page⌉⌊Settings page⌉[

Settings page

[⌊Negative space example⌉⌊Negative space example⌉[

Negative space example

[⌊Negative space example⌉⌊Negative space example⌉[

Negative space example

## Blocks

This plugin provides 1 block.

 *     Flexible Spacer Add white space between blocks and customize its height for
   each device.

## Installation

 1. Upload the `flexible-spacer-block` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.

## FAQ

### What filters can I use?

You can find a list of the available filters in the [GitHub README](https://github.com/t-hamano/flexible-spacer-block#filters).

## Reviews

![](https://secure.gravatar.com/avatar/b8e2aa21c51a17fe1ba602fe5f95168dd113645fb5e86388550a1d98dd8e6352?
s=60&d=retro&r=g)

### 󠀁[it is necessary for FES](https://wordpress.org/support/topic/it-is-necessary-for-fes/)󠁿

 [megane9988](https://profiles.wordpress.org/megane9988/) مئی 20, 2024

It can set margins for each screen width that cannot be set with the default block.
It also supports negative margins. Easy to use.

![](https://secure.gravatar.com/avatar/dde0f642e99597f93d76ca69479f5f881e8a90bec27fbeb7dd3c59aa7bfa9b27?
s=60&d=retro&r=g)

### 󠀁[Very nice](https://wordpress.org/support/topic/very-nice-1825/)󠁿

 [jhnpldng](https://profiles.wordpress.org/jhnpldng/) اوکتوبر 19, 2022

I wish more people would release single, useful blocks like this instead of all 
those copy cat collections. Who really needs 5 accordion blocks? Only other thing
I'd like to see in this is a way to set default initial heights like 75px desktop
| 50px tablet | 25px phone etc. I was actually looking for a way to set a default
height for the core spacer block when I stumbled on this.

![](https://secure.gravatar.com/avatar/c29a29ad4ebd68eb76991cb066ad387a9be1185e775ebcef13dff161ebe1b9f6?
s=60&d=retro&r=g)

### 󠀁[マイナススペースは便利！](https://wordpress.org/support/topic/%e3%83%9e%e3%82%a4%e3%83%8a%e3%82%b9%e3%82%b9%e3%83%9a%e3%83%bc%e3%82%b9%e3%81%af%e4%be%bf%e5%88%a9%ef%bc%81/)󠁿

 [kh777](https://profiles.wordpress.org/kh777/) جولای 29, 2022

マイナススペースは、スペーサーの上下にあるブロックの余白を狭くし、ブロックを重ねる
ことも可能

![](https://secure.gravatar.com/avatar/6fbb8454fb8c9dbc8dd849faa7f1f854a6b55bdadfc662a93d80d683893f6e58?
s=60&d=retro&r=g)

### 󠀁[Amazing!](https://wordpress.org/support/topic/amazing-3455/)󠁿

 [Jan Pencik](https://profiles.wordpress.org/janpencik/) آپریل 23, 2022

Thank you very much for creating this awesome plugin. Love the plugin's simplicity
and ease of use!

![](https://secure.gravatar.com/avatar/c946ead5be748a2361948be569877a172434feb05b1c035dbe36213b46e8278e?
s=60&d=retro&r=g)

### 󠀁[Those responsive features core forgot!](https://wordpress.org/support/topic/those-responsive-features-core-forgot/)󠁿

 [philhoyt](https://profiles.wordpress.org/philhoyt/) فووریه 14, 2022

I use this plugin on every site I build! An easy drop-in replacement for the spacer
block.

![](https://secure.gravatar.com/avatar/c6e2227fcee2e1c4532f3ab70e266945bd7d157ef823c59810c94805df7c833e?
s=60&d=retro&r=g)

### 󠀁[Fix My Problem with Mobile View](https://wordpress.org/support/topic/fix-my-problem-with-mobile-view/)󠁿

 [A1234578](https://profiles.wordpress.org/e5223959880/) جولای 20, 2021

I had a problem with the standard Spacer Block, wherein it breaks the format in 
mobile in our website. With Flexible Spacer, I can designate the size of the space
per mobile device! Awesome, thank you for developing this plugin.

 [ Read all 8 reviews ](https://wordpress.org/support/plugin/flexible-spacer-block/reviews/)

## Contributors & Developers

“Flexible Spacer Block” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Aki Hamano ](https://profiles.wordpress.org/wildworks/)

“Flexible Spacer Block” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/flexible-spacer-block/contributors)
for their contributions.

[Translate “Flexible Spacer Block” into your language.](https://translate.wordpress.org/projects/wp-plugins/flexible-spacer-block)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/flexible-spacer-block/),
check out the [SVN repository](https://plugins.svn.wordpress.org/flexible-spacer-block/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/flexible-spacer-block/)
by [RSS](https://plugins.trac.wordpress.org/log/flexible-spacer-block/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.10.0

 * Tested up to WordPress 7.2
 * Drop support for WordPress 7.0
 * Drop support for PHP 8.0 and 8.1
 * Enhancement: Load front-end styles only on pages that contain the block
 * Enhancement: Polish editor and settings page style
 * Fix: Spacers with a height of 100px on all devices are changed to the default
   values when the post is opened
 * Fix: Block validation error on spacers whose height was cleared
 * Fix: 0 cannot be saved as a default value on the settings page
 * Fix: The `flexible_spacer_block_breakpoint` filter is not applied in the editor
 * Fix: Default height is not shown in the editor preview when the height is unset

#### 2.9.0

 * Tested up to WordPress 7.1
 * Drop support for WordPress 6.9
 * Enhancement: Add spacing preset support
 * Fix: Plugin default value settings are not deleted upon uninstallation

#### 2.8.0

 * Tested up to WordPress 7.0
 * Drop support for WordPress 6.8
 * Enhancement: Polish settings page style

#### 2.7.0

 * Tested up to WordPress 6.9
 * Drop support for WordPress 6.6 and 6.7
 * Update: Block icon and toolbar icon
 * Enhancement: Polish settings sidebar layout
 * Enhancement: Highlight active spacer
 * Accessibility: Add aria-label to controls

#### 2.6.0

 * Tested up to WordPress 6.8
 * Accessibility: Respect user preference for CSS transitions
 * Drop support for WordPress 6.5

#### 2.5.0

 * Tested up to WordPress 6.7
 * Drop support for WordPress 6.4

#### 2.4.0

 * Tested up to WordPress 6.6
 * Drop support for WordPress 6.3

#### 2.3.0

 * Tested up to WordPress 6.5
 * Enhancement: Polish block style
 * Enhancement: Polish settings page style
 * Fix: Remove unnecessary CSS class
 * Drop support for WordPress 6.2

#### 2.2.0

 * Tested up to WordPress 6.4
 * Drop support for WordPress 6.0 and 6.1

#### 2.1.0

 * Tested up to WordPress 6.3
 * Add: Unit support
 * Drop support for WordPress 5.9
 * Drop support for PHP 7.3

#### 2.0.0

 * Tested up to WordPress 6.2
 * Feature: Add default values setting
 * Enhancement: Remove focus style for unit elements on the settings page
 * Enhancement: Improve error messages on the settings page
 * Fix: Responsive setting value becomes empty after certain operations
 * Fix: Grammar on the settings page

#### 1.4.1

 * Clean: Remove files not needed for the release

#### 1.4.0

 * Tested up to WordPress 6.1
 * Drop support for WordPress 5.6 through 5.8
 * Fix: Incorrect transformation from the core Spacer block
 * Enhancement: Polish settings page style

#### 1.3.0

 * Tested up to WordPress 6.0
 * Update: Minify inline styles
 * Add: Filter hooks
 * Update: Block icon
 * Update: Author name
 * Fix: CSS files are not loaded in the iframe editor on WordPress 6.0

#### 1.2.3

 * Change: Ensure minimum height of the block
 * Change: Minimum value of the spacer
 * Fix: Unable to change the height of the spacer in WordPress 5.9.1

#### 1.2.2

 * Clean: Remove unnecessary file included in the release

#### 1.2.1

 * Fix: Wrong text domain

#### 1.2.0

 * Tested up to WordPress 5.9
 * Add: Block control to change responsive view
 * Change: Script handle names
 * Change: Replace Dashicons with @wordpress/icons
 * Remove: load_plugin_textdomain function

#### 1.1.9

 * Clean: Update npm packages and run a lint check

#### 1.1.8

 * Clean: Update npm packages
 * Remove: Bundled language files

#### 1.1.7

 * Tested up to WordPress 5.8
 * Clean: Update npm packages

#### 1.1.6

 * Fix: Build script error
 * Fix: README.md screenshot

#### 1.1.5

 * Tested up to WordPress 5.7
 * Clean: Update deploy flow (GitHub Actions)
 * Clean: Update npm packages and organize the development environment

#### 1.1.4

 * Tested up to PHP 8

#### 1.1.3

 * Fix: Plugin configuration values are not deleted upon uninstallation

#### 1.1.2

 * Fix: Uninstallation error in PHP 8

#### 1.1.1

 * Add: Description of negative space

#### 1.1.0

 * Add: Negative space setting

#### 1.0.0

 * Initial release

## Meta

 *  Version **2.10.0**
 *  Last updated **3 گؤن ago**
 *  Active installations **4٫000+**
 *  WordPress version ** 7.1 or higher **
 *  Tested up to **7.2**
 *  PHP version ** 8.2 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/flexible-spacer-block/) و [Japanese](https://ja.wordpress.org/plugins/flexible-spacer-block/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/flexible-spacer-block)
 * Tags
 * [block](https://azb.wordpress.org/plugins/tags/block/)[gutenberg](https://azb.wordpress.org/plugins/tags/gutenberg/)
   [responsive](https://azb.wordpress.org/plugins/tags/responsive/)[spacer](https://azb.wordpress.org/plugins/tags/spacer/)
 *  [Advanced View](https://azb.wordpress.org/plugins/flexible-spacer-block/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  8 5-star reviews     ](https://wordpress.org/support/plugin/flexible-spacer-block/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/flexible-spacer-block/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/flexible-spacer-block/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/flexible-spacer-block/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/flexible-spacer-block/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/flexible-spacer-block/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/flexible-spacer-block/reviews/)

## Contributors

 *   [ Aki Hamano ](https://profiles.wordpress.org/wildworks/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/flexible-spacer-block/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.me/thamanoJP)