fixing editor style handling and commenting mistake

This commit is contained in:
Antoine M 2024-05-15 16:20:50 +02:00
parent 670a15b47c
commit c8697423ec

View File

@ -85,15 +85,7 @@ add_action('wp_enqueue_scripts', 'homegrade_enqueue_scripts');
Enqueue Theme assets 🡒 Back
-----------------------------------------------------------*/
add_action('enqueue_block_editor_assets', 'homegrade_enqueue_scripts');
function enqueue_specific_editor_content_assets()
{
$theme = wp_get_theme();
wp_enqueue_style('editor-style', tailpress_asset('css/editor-style.css'), array(), $theme->get('Version'));
}
add_action('enqueue_block_editor_assets', 'enqueue_specific_editor_content_assets');
// ALSO SEE add_editor_style('css/editor-style.css') line 41