• Resolved wgabel34

    (@wgabel34)


    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?

    • This topic was modified 4 years, 8 months ago by wgabel34.
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.