html - 来自父级的子主题 style.css 不传输

标签 html css wordpress parent-child stylesheet

我对 WordPress 比较陌生,正在使用 ThemeForest 的主题,它是构建器响应式多用途主题。我创建了子主题,从仪表板中选择并激活了它。我遇到的问题是页眉、菜单和页脚区域的样式格式不会转移到子主题。

我的网站是 brewer2inspect.com

我将子主题放在/wp-content/themes 下,并将其命名为 builder-child。在下面,您会发现我的新 style.css 文件的代码位于 builder-child 目录中。

/*
Theme Name:   Builder Child
Theme URI:    http://brewer2inspect.com/builder-child/  
Description:  Builder Child Theme
Author:       Mark G
Author URI:
Template:     builder
Version:      1.0.0
*/

// This @import line loads the stylesheet from the parent theme*/
@import url('../builder/style.css');

/* =Theme customization starts here ------- */

当这不起作用时,我查看了原始或父级 style.css 并尝试更改导入以将该文件反射(reflect)到以下也不起作用的文件中。

@import url('assets/css/bootstrap.css');
@import url('assets/css/bootstrap-responsive.css');
@import url('assets/css/docs.css');
@import url('assets/js/google-code-prettify/prettify.css');
@import url('assets/nivo/nivo-slider.css');
@import url('assets/css/prettyPhoto.css');
@import url('assets/css/options.css');

最佳答案

只是检查 - 您的父主题是称为“builder”还是“Builder”?导入路径区分大小写。

关于html - 来自父级的子主题 style.css 不传输,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31299475/

相关文章:

css - 如何制作带边框的梯形

wordpress - WooCommerce - 在重置密码后重定向用户

javascript - 更改 innerHTML 后更改 contenteditable div 中的光标位置

javascript - 如何在我的自定义指令中获取 ng-repeat 子元素的句柄?

javascript - 我在向 CSS 中的文本框添加文本时遇到问题

php - 从 PHP 循环创建两个主列

php - fatal error : Uncaught Error: Call to undefined function is_product()

mysql - WordPress插件劫持数据库,如何清理?

php - 什么是 'YTowOnt9' ?

php - 如何在呈现给可查看网页的 .php 文件中编写 php