• Resolved laptopsticker

    (@laptopsticker)


    (I added atomic blocks in order to have the container function.

    The absolutely horrible functionality problem with this is that there is absolutely no padding between the container block and the blocks inside. Which means that it’s practically impossible to select the correct block you want to edit.)

    A natural solution would be to edit the editor-styles.css.

    So I created the file editor-styles.css and added add_editor_style();

    But the css isn’t appearing in the editor.

    What am I missing?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Joy

    (@joyously)

    The add_editor_style() function existed before the new editor. So themes that used it were adding styles to the old editor. When they made the new editor, they didn’t want the old themes’ styles to mess up the new editor, so you have to use both add_editor_style(); and add_theme_support('editor-styles'). However, this will affect whatever styles are used with add_editor_styles whether you wanted that or not.

    https://developer.ww.wp.xz.cn/block-editor/developers/themes/theme-support/#editor-styles

    Thread Starter laptopsticker

    (@laptopsticker)

    Thank you!
    This worked.

    (sorry I didn’t reply sooner)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘editor-styles.css not working’ is closed to new replies.