functions.php での css読み込み
-
1からテーマ作成をしている初心者です。
functions.php にて 既存のcss を読み込もうとしているのですが。
GoogleChrome等のデベロッパーツールで見てみると<head></head> に出力されていません。 何故でしょうかご教授ください。<?php /* ----------------------------------------------------------------------------------- */ /* StyleSheet Enqueue */ /* ----------------------------------------------------------------------------------- */ function theme_enqueue_stylesheet() { if (!is_admin()) { wp_enqueue_style('ja-font', '//fonts.googleapis.com/earlyaccess/notosansjp.css'); wp_enqueue_style('kr-font', '//fonts.googleapis.com/earlyaccess/notosanskr.css'); wp_enqueue_style('awesome-font', '//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css'); wp_enqueue_style('bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css'); wp_enqueue_style('animate', get_template_directory_uri() . '/css/animate.css'); wp_enqueue_style('slick', get_template_directory_uri() . '/css/slick.css'); wp_enqueue_style('style', get_stylesheet_uri() ); } } add_action('wp_enqueue_style', 'theme_enqueue_stylesheet'); ?>
尚、functions.php にはこれしか書いておりません。
よろしくお願いいたします。
5件の返信を表示中 - 1 - 5件目 (全5件中)
5件の返信を表示中 - 1 - 5件目 (全5件中)
- トピック「functions.php での css読み込み」には新たに返信することはできません。