• Hello everyone !

    Here is my current issue : I am using a custom child theme (from Parabola, Cryout Creations, last version), but it seems that the editor-style.css file is not up-to-date. Rather than rewriting everything, I would like it to contain every css used on the front-end, so TinyMCE looks as close as the published page/article (this is important).

    In order to do that, I have created a new editor-style.css file in my child theme, so it overrides the not-up-to-date file. So far, it includes the styles.css file from my theme, but it lacks a lot of CSS from WordPress Core (the one on line 60 on the index file : http://nouveau.domaineloupia.com).

    So, how to add this “core CSS” to my editor-style.css file ? And would it be the best way to do this ? I have seen many stuff talking about the add_editor_style function, but I do not know if I could use it to do what I want nor how.

    Thanks for reading so far, and thank again in advance for any help you could provide !

    (Sorry for my poor english and this rush-written post)

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    There are no core CSS files on the front end, they only come from the theme. Some child, some parent, but theme, not core. add_editor_style() is a convenient way to load any desired stylesheets so they are applied to the editor’s visual content. Have a look at the examples near the bottom of the linked reference.

Viewing 1 replies (of 1 total)

The topic ‘Add WordPress Core CSS into editor-style.css’ is closed to new replies.