teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

書式の訂正

2016/07/24 14:28

投稿

Naokoko
Naokoko

スコア11

title CHANGED
File without changes
body CHANGED
@@ -11,18 +11,21 @@
11
11
  Albar https://demo.kairaweb.com/albar/
12
12
 
13
13
  子テーマの作成方法は、オリジナルのディレクトリを作成し、CSSに下記のように記入。
14
+ ```
14
15
  /*
15
16
  Template:albar
16
17
  Theme Name:child_albar
17
18
  Description:child theme made by Naoko
18
19
  Author:Naoko
19
20
  */
21
+ ```
20
22
 
21
23
  その後、function.phpを作成し下記のように記入しました。
24
+ ```
22
25
  <?php //
23
-
24
- add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
26
+ add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
25
27
  function theme_enqueue_styles() {
26
28
  wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
27
29
 
28
- }
30
+ }
31
+ ```