From 99adeb57ab9d957758342004d66a55481a255ae6 Mon Sep 17 00:00:00 2001 From: Marcus Kazmierczak Date: Thu, 11 Apr 2019 05:15:42 -0700 Subject: [PATCH] Docs: Try to clarify loading editor styles (#14917) * Try to clarify loading editor styles * Update wording --- docs/designers-developers/developers/themes/theme-support.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/designers-developers/developers/themes/theme-support.md b/docs/designers-developers/developers/themes/theme-support.md index 57a2f748f641c8..636f05bb8b6443 100644 --- a/docs/designers-developers/developers/themes/theme-support.md +++ b/docs/designers-developers/developers/themes/theme-support.md @@ -223,13 +223,13 @@ Note you don't need to add `add_theme_support( 'editor-styles' );` twice, but th ### Enqueuing the editor style -To make sure your editor style is loaded and parsed correctly, enqueue it using the following method: +Use the `add_editor_style` function to enqueue and load CSS on the editor screen. For the classic editor, this was the only function needed to add style to the editor. For the new block editor, you first need to `add_theme_support( 'editor-styles');` mentioned above. ```php add_editor_style( 'style-editor.css' ); ``` -It is enough to paste that in your `functions.php` file, for the style to be loaded and parsed. +Adding that to your `functions.php` file will add the stylesheet `style-editor.css` to the queue of stylesheets to be loaded in the editor. ### Basic colors