• Resolved webbernaut

    (@webbernaut)


    First off let me say great plugin! Been looking for a solution for responsive CSS frameworks since Gutenberg came out. (since wordpress decided to roll out their own css framework which is absurd)

    Im wondering if there is a way to add the Color Settings (background color & text color) on the Row block type (or I guess both row and container)? I saw you can add attributes via a filter in your functions.php But not really sure how this would apply for Color Settings.

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)
  • The topic ‘Color Settings/Palette on Block’ is closed to new replies.