Title: Flexible Spacer Block
Author: Aki Hamano
Published: <strong>28 janvier 2021</strong>
Last modified: 5 novembre 2026

---

Recherche d’extensions

![](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

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

[Télécharger](https://downloads.wordpress.org/plugin/flexible-spacer-block.2.10.0.zip)

[Prévisualisation en direct](https://fr.wordpress.org/plugins/flexible-spacer-block/?preview=1)

 * [Détails](https://fr.wordpress.org/plugins/flexible-spacer-block/#description)
 * [Avis](https://fr.wordpress.org/plugins/flexible-spacer-block/#reviews)
 *  [Installation](https://fr.wordpress.org/plugins/flexible-spacer-block/#installation)
 * [Développement](https://fr.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

## Captures d’écrans

[⌊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

## Blocs

Cette extension fournit 1 bloc.

 *     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).

## Avis

![](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 mai 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 octobre 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 juillet 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 avril 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 février 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 juillet 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.

 [ Lire les 8 avis ](https://wordpress.org/support/plugin/flexible-spacer-block/reviews/)

## Contributeurs/contributrices & développeurs/développeuses

« Flexible Spacer Block » est un logiciel libre. Les personnes suivantes ont contribué
à cette extension.

Contributeurs

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

“Flexible Spacer Block” a été traduit dans 1 locale. Remerciez [l’équipe de traduction](https://translate.wordpress.org/projects/wp-plugins/flexible-spacer-block/contributors)
pour ses contributions.

[Traduisez « Flexible Spacer Block » dans votre langue.](https://translate.wordpress.org/projects/wp-plugins/flexible-spacer-block)

### Le développement vous intéresse ?

[Parcourir le code](https://plugins.trac.wordpress.org/browser/flexible-spacer-block/),
consulter le [SVN dépôt](https://plugins.svn.wordpress.org/flexible-spacer-block/),
ou s’inscrire au [journal de développement](https://plugins.trac.wordpress.org/log/flexible-spacer-block/)
par [RSS](https://plugins.trac.wordpress.org/log/flexible-spacer-block/?limit=100&mode=stop_on_copy&format=rss).

## Journal des modifications

#### 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

## Méta

 *  Version **2.10.0**
 *  Dernière mise à jour **il y a 1 semaine**
 *  Installations actives **4 000+**
 *  Version de WordPress ** 7.1 ou plus **
 *  Testé jusqu’à **7.2**
 *  Version de PHP ** 8.2 ou plus **
 *  Langues
 * [English (US)](https://wordpress.org/plugins/flexible-spacer-block/) et [Japanese](https://ja.wordpress.org/plugins/flexible-spacer-block/).
 *  [Traduisez la dans votre langue](https://translate.wordpress.org/projects/wp-plugins/flexible-spacer-block)
 * Étiquettes
 * [block](https://fr.wordpress.org/plugins/tags/block/)[gutenberg](https://fr.wordpress.org/plugins/tags/gutenberg/)
   [responsive](https://fr.wordpress.org/plugins/tags/responsive/)[spacer](https://fr.wordpress.org/plugins/tags/spacer/)
 *  [Vue avancée](https://fr.wordpress.org/plugins/flexible-spacer-block/advanced/)

## Évaluations

 5 sur 5 étoiles.

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

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

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

## Contributeurs

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

## Support

Quelque chose à dire ? Besoin d’aide ?

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

## Faire un don

Souhaitez-vous soutenir l’avancement de cette extension ?

 [ Faire un don à cette extension ](https://www.paypal.me/thamanoJP)