質問編集履歴

2

追記

2016/07/25 15:05

投稿

makoto-n
makoto-n

スコア436

test CHANGED
File without changes
test CHANGED
@@ -4,4 +4,38 @@
4
4
 
5
5
 
6
6
 
7
- ```wp_register_script``````wp enqueue script```の違いとは何ですか?
7
+ wp_register_scriptとwp enqueue scriptの違いとは何ですか?
8
+
9
+
10
+
11
+
12
+
13
+ ちなみにですが、今までは下記の仕様で製作していました。
14
+
15
+ cssもfunctionsに書くべきだと知り、調べていくうちにぶつかりました。
16
+
17
+ ```php
18
+
19
+ // タイトルタグ
20
+
21
+ function my_setup_theme() {
22
+
23
+ add_theme_support( 'title-tag' );
24
+
25
+ }
26
+
27
+ add_action( 'after_setup_theme', 'my_setup_theme' );
28
+
29
+ //jQuery
30
+
31
+ function my_scripts() {
32
+
33
+ wp_enqueue_script( 'jquery' );
34
+
35
+ wp_enqueue_script( 'flexnav', get_template_directory_uri() .'/js/jquery.flexnav.min.js', array( 'jquery'));
36
+
37
+ }
38
+
39
+ add_action( 'wp_enqueue_scripts', 'my_scripts' );
40
+
41
+ ```

1

php

2016/07/25 15:05

投稿

makoto-n
makoto-n

スコア436

test CHANGED
File without changes
test CHANGED
File without changes