Forum Replies Created

Viewing 1 replies (of 1 total)
  • Hey thanks so much for the feedback and the nice review! We have just started implementing background colors to the grid. In order to do this in a generic enough way for the many different use cases, we plan on adding options to columns but not rows, where there’s less issues with paddings and margins.

    As of now you might be able to use the class filters in our templates (located in src/templates) named something like wp_bootstrap_blocks_<blockname>_classes to add a utility class that adds the background you need.

    For rows you might be able to do something like:

    
    add_filter( 'wp_bootstrap_blocks_row_wrapper_classes', 'my_custom_container_classes', 10, 2 );
    
    function my_custom_container_classes( $classes, $attributes ) {
        return [ 'bg-primary' ];
    }
    

    Hope that helps!

Viewing 1 replies (of 1 total)