Home Support Total edit/create editor-style.css

This topic contains 1 reply, has 2 voices, and was last updated by  HashThemes 1 week, 5 days ago.

  • Author
    Posts
  • #3174

    ottomek
    Participant

    Hi,
    I see this in functions.php
    add_editor_style( array( ‘css/editor-style.css’, total_fonts_url() ) );

    I tried to edit css/editor-style.css but it didn’t change any styles in the WP visual editor. Tried several things; add editor-style.css to Total theme folder, adding child theme functions.php with add_editor_style(); and several other things but couldn’t get my own editor-style.css to load through tinymce advanced. Only by deleting the above line from the functions.php could I use my own editor-style.css

    What would be the correct method for adding or editing my own editor-style.css file.

    Thanks,
    John

  • #3200

    HashThemes
    Keymaster

    Editing the editor-style.css should have worked without any problem

    Or you can use the below code in the child theme and then add your own editor style css file.

    add_action( ‘after_setup_theme’, ‘generate_child_setup’ );
    function generate_child_setup() {
    add_editor_style( ‘path/to/editor-style.css’ );
    }

You must be logged in to reply to this topic.