回答編集履歴
2
情報の追加。
test
CHANGED
@@ -13,6 +13,18 @@
|
|
13
13
|
|
14
14
|
|
15
15
|
jQueryが2回登録されていたり、jQueryに依存関係にあるライブラリに適切な指定がされていなかったりもしますね。
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
【functions.phpでJSやCSSを一元管理する| WordPressテックラボ | [Smart]】
|
20
|
+
|
21
|
+
[http://rfs.jp/sb/wordpress/wp-lab/wp_enqueue_script.html](http://rfs.jp/sb/wordpress/wp-lab/wp_enqueue_script.html)
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
【WordPress で CSS、JavaScript ファイルを読み込む正しい方法 | EastCoder;】
|
26
|
+
|
27
|
+
[http://eastcoder.com/2014/07/proper-way-to-enqueue-scripts-and-styles-with-wordpress/](http://eastcoder.com/2014/07/proper-way-to-enqueue-scripts-and-styles-with-wordpress/)
|
16
28
|
|
17
29
|
|
18
30
|
|
1
補足の追加。
test
CHANGED
@@ -9,6 +9,10 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
また、`wp_enqueue_script` でスクリプトを登録しているにもかかわらずfooter.phpに `script` タグが大量にありますが、重複して指定する必要はありませんし、パスが相対パスになっているのでページの階層によっては取得に失敗するはずです。
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
jQueryが2回登録されていたり、jQueryに依存関係にあるライブラリに適切な指定がされていなかったりもしますね。
|
12
16
|
|
13
17
|
|
14
18
|
|