質問編集履歴
3
説明追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -52,6 +52,9 @@
|
|
52
52
|
### 実現したいこと
|
53
53
|
|
54
54
|
「壊れているテーマ followyoriss スタイルシートが見つかりません。」とあるのでstyle.cssを正常に動作させたいです。
|
55
|
+
|
56
|
+
動画の34:00のスクショです。
|
57
|
+

|
55
58
|
|
56
59
|
|
57
60
|
### 発生している問題・エラーメッセージ
|
2
タイトルの変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Worpressで
|
1
|
+
Wordpressのためのfunctions.phpでのエラー
|
test
CHANGED
File without changes
|
1
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,6 +10,44 @@
|
|
10
10
|
|
11
11
|
動画だと最初からtheme-templateがあるのでそれが私のblog-site-template-masterに当たるのだと思います。
|
12
12
|

|
13
|
+
|
14
|
+
|
15
|
+
### 少し問題が変わりました
|
16
|
+
|
17
|
+
画像のようにfunctions.phpにエラーがあると表示されるようになりました。
|
18
|
+

|
19
|
+
|
20
|
+
```functions.php
|
21
|
+
|
22
|
+
<!-- 22:00 -->
|
23
|
+
|
24
|
+
<?php
|
25
|
+
|
26
|
+
|
27
|
+
function followyoriss_resister_styles() {
|
28
|
+
|
29
|
+
wp_enqueue_style('followyoriss-bootstrap', get_template_directory_uri( ) , "/style.css", array(), '1.0', 'all')
|
30
|
+
|
31
|
+
|
32
|
+
このラインが赤線でvscodeでもエラーになります。}
|
33
|
+
|
34
|
+
add_action( 'wp_enqueue_scripts', 'followyoriss_resister_styles');
|
35
|
+
|
36
|
+
|
37
|
+
// css js 読み込み
|
38
|
+
|
39
|
+
function enqueue_my_scripts() {
|
40
|
+
wp_enqueue_style( 'my-stylesheet', get_stylesheet_uri() );
|
41
|
+
wp_enqueue_script( 'jquery' );
|
42
|
+
}
|
43
|
+
|
44
|
+
add_action( 'wp_enqueue_scripts', 'enqueue_my_scripts');
|
45
|
+
|
46
|
+
?>
|
47
|
+
|
48
|
+
```
|
49
|
+
|
50
|
+

|
13
51
|
|
14
52
|
### 実現したいこと
|
15
53
|
|