• Resolved Xiuyuan

    (@xiuyuan)


    I’m trying to add some custom css styling to my editor, but I just can’t get editor-style.css to load at all.

    The css file I’m trying to use is called editor-style.css, and it’s in my theme folder.

    I’ve tried adding this to functions.php:

    add_editor_style();

    That didn’t work, I also tried this:

    function mytheme_add_editor_style() {
        add_editor_style();
    }
    add_action( 'init', 'mytheme_add_editor_style' );

    That didn’t work either. When I load the editor page, I’m using Chrome’s F12 debugging view to see what stylesheets are being loaded, and editor-style.css isn’t there at all.

    If it’s relevant, this is in a child theme.

    What am I doing wrong?

Viewing 1 replies (of 1 total)
  • Thread Starter Xiuyuan

    (@xiuyuan)

    Simple problem: my browser cache was interfering and it wasn’t loading the new stylesheet. I cleared cache and refreshed the page and now it’s working fine.

Viewing 1 replies (of 1 total)
  • The topic ‘Can't get editor-style.css to load at all’ is closed to new replies.