Par défaut, Undercore ne gère pas les options de dimension des blocks.
Il faut les activer.
Dans le fichier functions.php ajoutez cette fonction:
/**
* Activate dimensions block
*/
function slugdemontheme_block_padding_margin_theme_support( $editor_settings, $editor_context ) {
if ( ! empty( $editor_context->post ) ) {
$editor_settings["enableCustomSpacing"] = true;
$editor_settings["__experimentalFeatures"]["spacing"]["margin"] = true;
}
return $editor_settings;
}
add_filter( 'block_editor_settings_all', 'slugdemontheme_block_padding_margin_theme_support', 10, 2 );

En savoir plus: