首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >子主题定制器无法工作

子主题定制器无法工作
EN

WordPress Development用户
提问于 2017-08-08 18:25:50
回答 1查看 2.1K关注 0票数 0

我的子主题定制器无法工作。我从父主题中创建了一个名为flash的子主题。在父主题中,我可以很好地使用自定义程序并更改布局等。然而,当我激活我的子主题时,在我的定制程序中没有任何东西在布局上工作,我觉得问题就在我的style.css评论中。我对此进行了研究,每个人都说这与插件有关,所以我一个接一个地禁用并激活了这些插件,没有什么不对。所以我认为这与我如何将儿童主题联系在一起有关。我对儿童主题很陌生,所以我认为这与style.css的评论有任何关系,但如果有人知道为什么,请告诉我。

下面是我必须在style.css中发表的评论的一个例子。我将包括作者的闪光灯主题的评论,以及。

我的孩子主题style.css评论:

代码语言:javascript
复制
/*
Theme Name: flash-child
Theme URI: https://mywebsite.com/flash-child
Author: me
Author URI: https://mywebsite.com/flash-child
Description: Flash is free responsive multipurpose WordPress theme – truly a 
versatile theme perfect for any type of website you want. Like never before, 
it provides multiple pre-built demos which can be imported in seconds using 
ThemeGrill Demo Importer Plugin. The theme fully integrates with Flash 
Toolkit and SiteOrigin’s Page Builder Plugin that makes theme more user-
friendly and easy. Additionally, theme features multiple blog layouts, 
WooCommerce support, multiple header styles, multiple color options etc.
Version: 1.1.3
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: flash
Template: flash
Tags: one-column, two-columns, left-sidebar, right-sidebar, grid-layout, 
custom-background, custom-colors, custom-menu, custom-logo, featured-images, 
footer-widgets, full-width-template, theme-options, threaded-comments, 
translation-ready, blog, e-commerce

Flash is based on Underscores http://underscores.me/, (C) 2012-2016 
Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
 */

Style.css中的闪存(父)主题评论:

代码语言:javascript
复制
/*
Theme Name: Flash
Theme URI: https://themegrill.com/themes/flash
Author: ThemeGrill
Author URI: https://themegrill.com
Description: Flash is free responsive multipurpose WordPress theme – truly a 
versatile theme perfect for any type of website you want. Like never before, 
it provides multiple pre-built demos which can be imported in seconds using 
ThemeGrill Demo Importer Plugin. The theme fully integrates with Flash 
Toolkit and SiteOrigin’s Page Builder Plugin that makes theme more user-
friendly and easy. Additionally, theme features multiple blog layouts, 
WooCommerce support, multiple header styles, multiple color options etc.
Version: 1.1.3
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: flash
Tags: one-column, two-columns, left-sidebar, right-sidebar, grid-layout, 
custom-background, custom-colors, custom-menu, custom-logo, featured-images, 
footer-widgets, full-width-template, theme-options, threaded-comments, 
translation-ready, blog, e-commerce

Flash is based on Underscores http://underscores.me/, (C) 2012-2016 
Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
*/
EN

回答 1

WordPress Development用户

发布于 2018-05-05 09:19:36

除上述内容外,在更新style.css文件内容时,请确保更新其版本号。它似乎定制缓存CSS,并不会更新它时,它有旧的版本号(尽管网站将运行良好)。

票数 0
EN
页面原文内容由WordPress Development提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://wordpress.stackexchange.com/questions/276232

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档