- This topic has 1 reply, 2 voices, and was last updated 6 years, 9 months ago by Hash.
- AuthorPosts
- July 12, 2017 at 5:47 am #3174ottomekParticipant
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,
JohnJuly 15, 2017 at 12:03 am #3200HashKeymasterEditing 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’ );
} - AuthorPosts
- You must be logged in to reply to this topic.