我正在使用Optimizer主题,并创建了一个子主题来对样式进行2次更改。css。这个single\\u wrap adjustment工作正常,但忽略了page\\u标头。当我在Google Chrome上使用Inspect元素时,我可以分辨出父样式。css覆盖了子样式。此部件的css。Page\\u head是我页面上的标题横幅。有人知道怎么了吗?
style.css
/*
Theme Name: optimizer_child
Template: optimizer
*/
/* =Theme customization starts here
-------------------------------------------------------------- */
.single_wrap {
margin-left: auto;
margin-right: auto;
float: none;
}
.page_head {
min-height: 100px;
}
functions.php
<?php
add_action( \'wp_enqueue_scripts\', \'enqueue_parent_theme_style\' );
function enqueue_parent_theme_style() {
wp_enqueue_style( \'parent-style\', get_template_directory_uri().\'/style.css\' );
}
网站:http://www.gelnagels-gina.be