質問編集履歴

3

説明追加

2022/11/11 02:10

投稿

Iori
Iori

スコア55

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
+ ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-11-11/c0ce7c23-f498-4556-a01e-98889755072e.png)
55
58
 
56
59
 
57
60
  ### 発生している問題・エラーメッセージ

2

タイトルの変更

2022/11/10 01:32

投稿

Iori
Iori

スコア55

test CHANGED
@@ -1 +1 @@
1
- Worpressでカスタムドメインを作りたい
1
+ Wordpressのためのfunctions.phpのエラー
test CHANGED
File without changes

1

追加

2022/11/09 23:35

投稿

Iori
Iori

スコア55

test CHANGED
File without changes
test CHANGED
@@ -10,6 +10,44 @@
10
10
 
11
11
  動画だと最初からtheme-templateがあるのでそれが私のblog-site-template-masterに当たるのだと思います。
12
12
  ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-11-09/4906b332-3b99-4f6f-8de4-e4963cf3cb3a.jpeg)
13
+
14
+
15
+ ### 少し問題が変わりました
16
+
17
+ 画像のようにfunctions.phpにエラーがあると表示されるようになりました。
18
+ ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-11-10/a3c198ab-2183-4281-a99a-64ff49db864d.jpeg)
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
+ ![イメージ説明](https://ddjkaamml8q8x.cloudfront.net/questions/2022-11-10/d5f5f87e-775c-4972-aa07-95ff7e0c93d6.jpeg)
13
51
 
14
52
  ### 実現したいこと
15
53