Home Forums General Issues Styling not showing in editor


Styling not showing in editor

  • 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()

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.