Dimensions options not displaying on Beaver theme
-
Hi, this block is awesome thanks, I’m just having trouble getting the dimensions options to display. I am using the Widley used Beaver theme so not sure why. I tried the code you gave to another person in my child theme functions.php, but doesn’t work for me, any help much appreciated, thank you
/** * Adds Dimension support to this theme * * @param array $editor_settings * @param object $editor_context * @return array $editor_settings */ function superlist_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', 'superlist_block_padding_margin_theme_support', 10, 2 );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Dimensions options not displaying on Beaver theme’ is closed to new replies.