UUA主题提供了starter child theme 其中包括一个示例style.css
文件和functions.php
文件这些文件包含几行代码,用于测试子主题是否正确加载。
您需要从这两个文件中删除此测试代码,该文件在代码注释中标识。
具体来说,此代码在函数中。php:
/**
* Below is a test to confirm the parent theme is being overridden by the child.
* If your page titles say, "Child Theme Loaded," the child theme is working.
* After you confirm it\'s working, delete this function and filter.
*/
function uuatheme_title() {
return "Child Theme Loaded";
}
add_filter( \'the_title\', \'uuatheme_title\' );
这段代码的风格。css:
/**
* Below is a test to confirm this stylesheet is being applied.
* It turns all text to all caps. DELETE this after confirmation.
*/
body {
text-transform: uppercase !important;
}