Support

Account

Home Forums Gutenberg ACF Block styles preview not working in WordPress 5.9 Reply To: ACF Block styles preview not working in WordPress 5.9

  • Just to mention – for variations with ACF Pro 6.0:

    add_action('init', function() {
        wp_register_style('awp-block-styles', get_template_directory_uri() . '/assets/css/custom-block-style.css', false);
        register_block_style('core/heading', [
            'name' => 'colored-bottom-border',
            'label' => __('Colored bottom border', 'txtdomain'),
            'style_handle' => 'awp-block-styles'
        ]);
    });