Gutenberg gallery settings in Blocksy
-
I would like to set the default wordpress gallery in guttenberg to 1. Somewhere I found this code that needs to be inserted into functions.php
function set_default_block_spacing( $editor_settings ) { $editor_settings[‘__experimentalBlockSpacing’][‘value’] = 1; return $editor_settings; } add_filter( ‘block_editor_settings_all’, ‘set_default_block_spacing’ );
But the code doesn’t work after pasting and I find it too complicated. Can anyone advise a simpler way (via add CSS) to set all block spacing by default in galleries to 1?
I also try to set
.wp-block-gallery .blocks-gallery-item {
margin-right: 1px;
}doesnot work
Thanks
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Gutenberg gallery settings in Blocksy’ is closed to new replies.