我想包括我的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