teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

 

2017/09/18 09:23

投稿

退会済みユーザー
answer CHANGED
@@ -7,7 +7,15 @@
7
7
  editor-style.cssをどうやって読み込ませているか書いてください。
8
8
 
9
9
 
10
+ **追記**
11
+ 例えば```add_editor_style('editor-style.css');```の部分を
10
12
 
11
- この質問はどうなりましたか?
13
+ 以下に変えるとどうなりまか?
14
+ ```
15
+ function add_editor_style_css() {
12
- [https://teratail.com/questions/92293](https://teratail.com/questions/92293)
16
+ wp_enqueue_style( 'editor-style', get_template_directory_uri() . '/editor-style.css' );
17
+ }
13
- 返答がありませんが、解決したなら解決済にしてください。
18
+ add_action( 'admin_print_scripts', 'add_editor_style_css' );
19
+ ```
20
+
21
+