More Related Content
Similar to WordPressを"仕事"にするということ (20)
WordPressを"仕事"にするということ
- 35. 35
・ CSS・JSは、wp_enqueue_script() を使う
wp_enqueue_script( 'matchheight',
get_template_directory_uri() . '/js/jquery.matchHeight-min.js',
array('jquery'), // jQueryに依存する
'20151114', // キャッシュ
true );
wp_enqueue_style( 'my-styles',
get_stylesheet_directory_uri() . '/css/my.css',
array('lightning-theme-style'), // 他のCSSの後で読み込ませる
date('YmdGis', filemtime(TEMPLATE_PATH.$file_path)), // キャッシュ
false );
・ 依存関係のコン
トロール
・ キャ
ッシュのコン
トロール