• Resolved digbymaass

    (@digbymaass)


    Although we have editor-style.css the latest update is not loading it…

    Disabled: A stylesheet file named editor-style.css was not added by your theme.

    Consequently the visual editor (we are using classic with the Classic Editor plugin) is not reflecting the style we want.

    • This topic was modified 5 years, 11 months ago by digbymaass.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Andrew Ozz

    (@azaozz)

    This seems to be working properly here. Couple of questions:
    1. Is your editor-style.css in the root directory of your theme?
    2. Are you using a child theme?

    Also, can you try adding something like this to your theme’s functions.php:

    
    add_action( 'after_setup_theme', 'my_theme_setup' );
    function my_theme_setup() {
        add_editor_style();
    
        // For the Block Editor.
        add_theme_support( 'editor-styles' );
    }
    

    If that works, best would be to make a basic “child theme” and add that there together with your actual editor-style.css file.

    Thread Starter digbymaass

    (@digbymaass)

    Yes it’s in the child theme folder, and was loaded successfully until this update.
    Yes, we are using eleven40-pro

    And the code added to functions.php worked!

    Thanks!

    Plugin Author Andrew Ozz

    (@azaozz)

    Great, thanks for letting me know ??

    Andrew thank you! That helped me!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘editor-style.css was not added by your theme’ is closed to new replies.