How to theme blocks ?
-
Hi
I want to change how the blocks render on a page. I wanted to start with the easy things, like featured block height etc.
I was trying to add the default values with add_theme_support, but with no luck. I tried:add_theme_support( 'woocommerce', array( 'featured_block' => array( 'default_height' => 100, 'min_height' => 100 ) )); add_theme_support('featured_block', array( 'default_height' => 100, 'min_height' => 100 )); add_theme_support( 'woocommerce-gutenberg-products-block', array( 'featured_block' => array( 'default_height' => 100, 'min_height' => 100 ) ));
But none of them work. Could you please specify the correct way of doing this?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to theme blocks ?’ is closed to new replies.