Hi, I am using a flexible content field and have used wp_enqueue_style
to register a specific stylesheet if its related block is used. The styling appears to be working fine on the front-end but it isn’t loading in the backend editor. Is there something I can change or do to fix this issue?
if( get_row_layout() == 'block_text_area' ):
get_template_part( "template-parts/blocks/layouts/text-area" );
wp_enqueue_style( 'text_area_style', get_stylesheet_directory_uri() . '/template-parts/blocks/styling/text-area-style.css', array(), '1.0.0' );
The templates loaded on the front end are not used in the admin.
From what little I understand, this is done when calling acf_register_block_type()