Home Support Total edit/create editor-style.css

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #3174


    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.




    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’ );

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

You must be logged in to reply to this topic.