我刚上班,接受了wordpress的培训。我尝试制作一个子主题并在functions.php中排列样式。我不知道我做错了什么。请帮助,因为style.css没有加载任何东西。我尝试了导入方式,仍然无法正常工作。
Thanx in adv
functions.php的代码
<?php
function avudo_add_styles(){
wp_enqueue_style ('main_css', get_stylesheet_uri());
}
add_action('wp_enqueue_scripts','avudo_add_styles');
?>
的style.css
/*
Theme Name: Twenty fourteen Child
Theme URI: http://example.com/twenty-fifteen-child/
Description: Twenty Fifteen Child Theme
Author: John Doe
Author URI: http://example.com
Template: twentyfourteen
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
Text Domain: twenty-fourteen-child
*/
/*testing*/
body{
background-color: blue;
}