Support

Account

Home Forums ACF PRO ACF Blocks with block.json generates wrong CSS file URL in editor Reply To: ACF Blocks with block.json generates wrong CSS file URL in editor

  • Same here, thanks!

    Just to add:

    Just make sure to use wp_register_style for all styles.

    Do not add the style names to register_block_type, instead put style in the block.json.

    ps: I had to opt-in the following

    block-styles-loading-enhancements-in-wordpress-5-8/

    add_filter( 'should_load_separate_core_block_assets', '__return_true' );