Is there a way in Scripts Organizer to load the CSS in the block editor?
Hi,
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’ );
Regards, Muhammad Osama
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Hi,
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’ );
Regards,
Muhammad Osama