[WordPress] How to reflect CSS in the visual editor

Code

functions.php

add_editor_style();
add_editor_style("editor-style.css");;

CSS

wp-content/themes/[theme folder]/editor-style.css

example

h3{
margin: 16px 0px;
border-bottom: 1px dotted #ddd;
padding: 16px 0;
}

If you like the article, please share it!

Related article