タグ: WordPress
[WordPress]本番サーバー構築手順
[WordPress]ローカル開発環境構築手順(Mac編)
MAMP
WordPress
htdocsに配置
MAMPを起動
WordPressをインストール
[WordPress]ローカル開発環境構築手順(Windows編)
[WordPress]テーマ更新しても大丈夫!子テーマの作成手順
子テーマを作成する
style.css
/* Theme Name:(子テーマのTheme Name) Template:(親テーマのTheme Name) Version:1.00 */
function.php
<?php
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' );
function theme_enqueue_styles() {
wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' );
}
single.php
親テーマのsingle.phpをコピー