回答編集履歴

2

誤字の修正

2015/11/06 00:33

投稿

s104
s104

スコア98

test CHANGED
@@ -30,16 +30,26 @@
30
30
 
31
31
  なので、functions.phpに
32
32
 
33
+
34
+
35
+ ※間違いがあったので下に書きなおしました。
36
+
37
+
38
+
39
+ と記述すれば解決すると思います。
40
+
41
+ styleタグを直接記述する方法はWordPressのお作法に反しているため、上手く行かないことの方が多くなりますので、functions.phpに関数を定義する方法で対応を考えることをおすすめします。
42
+
43
+
44
+
45
+
46
+
33
47
  ```PHP
34
48
 
35
49
  if (is_singular('plan_list')) {
36
50
 
37
- wp_enqueue_stlye('plan-list','http://..../wp-content/themes/sahifa/style-plan_list.css', array('tie-ilightbox-skin'), false, all);
51
+ wp_enqueue_style('plan-list',読み込ませたい用意したCSSのURL, array('tie-style'), false, all);
38
52
 
39
53
  }
40
54
 
41
55
  ```
42
-
43
- と記述すれば解決すると思います。
44
-
45
- styleタグを直接記述する方法はWordPressのお作法に反しているため、上手く行かないことの方が多くなりますので、functions.phpに関数を定義する方法で対応を考えることをおすすめします。

1

シングルクォートに修正

2015/11/06 00:33

投稿

s104
s104

スコア98

test CHANGED
@@ -32,9 +32,9 @@
32
32
 
33
33
  ```PHP
34
34
 
35
- if (is_singular("plan_list")) {
35
+ if (is_singular('plan_list')) {
36
36
 
37
- wp_enqueue_stlye('plan-list","http://..../wp-content/themes/sahifa/style-plan_list.css", array("tie-ilightbox-skin"), false, all);
37
+ wp_enqueue_stlye('plan-list','http://..../wp-content/themes/sahifa/style-plan_list.css', array('tie-ilightbox-skin'), false, all);
38
38
 
39
39
  }
40
40