子テーマを作成し、子テーマにpage-splash.phpを作成してこのページ用のsplash.cssを作成しましたが、どういうわけかpage-splash.cssをpage-splash.phpファイルに読み込めません。子テンプレートにページテンプレート用のスタイルシートを含めることができません
これは、私がこれについてあなたの助けを本当に感謝します(子テーマフォルダに)
<?php
add_action('wp_enqueue_scripts', 'my_theme_enqueue_styles');
function my_theme_enqueue_styles() {
wp_enqueue_style('parent-style', get_template_directory_uri() . '/style.css');
}
function splash_enqueue_style() {
wp_enqueue_style('page-splash', get_template_directory_uri().'/css/page-spash.css');
}
add_action('wp_enqueue_scripts', 'splash_enqueue_style');
?>
のfunctions.phpで私のコードです。 私は何が間違っていますか? 私はlocalhostで作業しており、正常に動作した後、これらのファイルを作業ドメインに転送します。
そうそう、この情報はあまりにも –