【WordPress】ビジュアルエディタにCSSを反映させる方法
![](https://deco8.net/wp-content/uploads/2019/08/wordpress-1810479_640.jpg)
ソース
functions.php
add_editor_style();
add_editor_style("editor-style.css");;
CSS
wp-content/themes/テーマフォルダ/editor-style.css
例
h3{
margin: 16px 0px;
border-bottom: 1px dotted #ddd;
padding: 16px 0;
}
functions.php
add_editor_style();
add_editor_style("editor-style.css");;
wp-content/themes/テーマフォルダ/editor-style.css
例
h3{
margin: 16px 0px;
border-bottom: 1px dotted #ddd;
padding: 16px 0;
}