Is there a way in Scripts Organizer to load the CSS in the block editor?

One response to “CSS in WP Admin”

  1. cmsexpertss says:


    You can use this function to load your custom css file in block editor

    function site_block_editor_styles() {
    wp_enqueue_style( ‘site-block-editor-styles’, get_theme_file_uri( ‘/style-editor.css’ ), false, ‘1.0’, ‘all’ );
    add_action( ‘enqueue_block_editor_assets’, ‘site_block_editor_styles’ );

    Muhammad Osama

Leave a Reply

Your email address will not be published.