'fixed-height-272', // part of the class that gets added to the block. 'label' => __( ' Fixed Height 272px', 'style-1' ), ) ); } add_action( 'init', 'register_cover_block_styles_1' ); function register_cover_block_styles_2() { register_block_style( 'core/cover', // name of your block array( 'name' => 'fixed-height-300', // part of the class that gets added to the block. 'label' => __( ' Fixed Height 300px', 'style-2' ), ) ); } add_action( 'init', 'register_cover_block_styles_2' ); function register_cover_block_styles_3() { register_block_style( 'core/cover', // name of your block array( 'name' => 'fixed-height-400', // part of the class that gets added to the block. 'label' => __( ' Fixed Height 400px', 'style-3' ), ) ); } add_action( 'init', 'register_cover_block_styles_3' ); // It doesn't look like fill and outline were added in php, hence have to unregister with JS /** * Gutenberg scripts and styles * @link https://www.billerickson.net/block-styles-in-gutenberg/ */ function be_gutenberg_scripts() { wp_enqueue_script( 'be-editor', get_stylesheet_directory_uri() . '/assets/js/editor.js', array( 'wp-blocks', 'wp-dom' ), filemtime( get_stylesheet_directory() . '/assets/js/editor.js' ), true ); } add_action( 'enqueue_block_editor_assets', 'be_gutenberg_scripts' ); if ( ! function_exists( 'bootscore_block_styles' ) ) : /** * Register custom block styles */ function register_button_block_button() { register_block_style( 'core/button', // name of your block array( 'name' => 'bootstrap-primary', // part of the class that gets added to the block. 'label' => __( 'Primary', 'bootstrap-primary' ), ) ); register_block_style( 'core/button', // name of your block array( 'name' => 'bootstrap-dark', // part of the class that gets added to the block. 'label' => __( 'Dark', 'bootstrap-dark' ), ) ); } endif; add_action( 'init', 'register_button_block_button' ); /* TEMPLATE PAGE */ /** * Change one or more classes into my-custom-class */ function my_fancy_filter_function() { return "featured-full-width-img bg-dark text-light mb-4"; } add_filter('bootscore/class/featured-full-width-img', 'my_fancy_filter_function', 10, 2);