vagrantで構築した Wordpressのローカル開発環境で子テーマの設定がうまくいきません。
こちらのサイトを参考にしています。
https://www.webcreatorbox.com/tech/wordpress-child-theme
ワードプレス管理画面の外観➔テーマに子テーマが表示されません。
本番環境では全く同じやり方で子テーマの設定ができているのですが、なぜか、ローカル開発環境ではうまくいきません。
特になにかエラメッセージ等が出ているわけでもないので、どう原因を調べていけばよいでしょうか。
###環境
vagrantで構築したWordpress環境
Vagrant Version: 1.9.7
Ubuntu 14.04.5 LTS"
PHP 7.0.22-2+ubuntu14.04.1+deb.sury.org+4 (cli)
###ディレクトリ構成
├── twentyseventeen
├── twentyseventeen_child
│ ├── functions.php
│ └── style.css
###functions.php
php
1<?php 2add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); 3function theme_enqueue_styles() { 4 wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); 5 wp_enqueue_style( 'child-style', get_stylesheet_directory_uri() . '/style.css', array('parent-style') 6); 7} 8?> 9
###style.css
lang
1 2/* 3 Theme Name: twentyseventeen Child 4 Template: twentyseventeen 5*/
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。