Never mind. Noob user error. I see that the default option for margin is “small”. Probably should be set to “none” by default.
You’re right. It would probably make sense to disable it by default. Let’s see if we can change the default value in a future release. But since this would be a breaking change we probably won’t do it that quickly.
Hi @tschortsch
Great plugin, but I also have this annoying problem, and I cannot find where this ‘default setting’ can be changed.
How can I remove the mb-2 from my containers please?
You can define the default value with the wp_bootstrap_blocks_container_default_attributes PHP filter documented here: https://github.com/liip/bootstrap-blocks-wordpress-plugin#wp_bootstrap_blocks_container_default_attributes
In your case you need to define the following filter:
add_filter( 'wp_bootstrap_blocks_container_default_attributes', 'my_container_default_attributes', 10, 1 );
function my_container_default_attributes( $default_attributes ) {
$default_attributes['marginAfter'] = 'mb-0';
return $default_attributes;
}