Skip to content

Commit

Permalink
Docs: Try to clarify loading editor styles (WordPress#14917)
Browse files Browse the repository at this point in the history
* Try to clarify loading editor styles

* Update wording
  • Loading branch information
mkaz authored and mchowning committed Apr 15, 2019
1 parent 0c6333e commit 99adeb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/designers-developers/developers/themes/theme-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 99adeb5

Please sign in to comment.