質問編集履歴
2
function\.php編集
title
CHANGED
File without changes
|
body
CHANGED
@@ -16,7 +16,6 @@
|
|
16
16
|
```
|
17
17
|
<?php
|
18
18
|
function add_files($style) {
|
19
|
-
$style = ['reset', 'myCommon', 'index'];
|
20
19
|
foreach ($style as $item) {
|
21
20
|
wp_register_style($item, get_stylesheet_directory_uri().'/assets/css/'.$item.'.css');
|
22
21
|
wp_enqueue_style($item);
|
1
function\.php内更新
title
CHANGED
File without changes
|
body
CHANGED
@@ -16,8 +16,10 @@
|
|
16
16
|
```
|
17
17
|
<?php
|
18
18
|
function add_files($style) {
|
19
|
+
$style = ['reset', 'myCommon', 'index'];
|
19
20
|
foreach ($style as $item) {
|
20
|
-
|
21
|
+
wp_register_style($item, get_stylesheet_directory_uri().'/assets/css/'.$item.'.css');
|
22
|
+
wp_enqueue_style($item);
|
21
23
|
}
|
22
24
|
}
|
23
25
|
add_action( 'wp_enqueue_scripts', 'add_files');
|