我想包括我的styles.css樣式表在wordpress主題我試圖發展(我的第一個)。問題:如何包含它?我想想,把下面的代碼在我的header.php文件的工作原理:如何在wordpress主題中包含styles.css?
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>">
但是我寧願喜歡像這樣把它列入通過的functions.php:
<?php
function firstTheme_style(){
wp_enqueue_style('core', 'style.css', false);
}
add_action('wp_enqueue_scripts', 'firstTheme_style');
?>
然而,這doew不能工作(當我刪除從我header.phps「頭」行了,我的風格是沒見過?
https://codex.wordpress.org/Plugin_API/Action_Reference/wp_head你需要','在你的header.php – Steve