我正在尝试制作一个工具箱主题的子主题,并在我的多站点WP 3.2安装中使用它。
我创建了一个名为wp-content/themes/charlie-repair-toolkit/的文件夹,然后在该文件夹中创建了包含以下信息的style.css (其中一些信息是从原始主题复制的):
/*
Theme Name: Charlie's Repair
Theme URI: http://wordpress.org/extend/themes/toolbox/
Author: Mike Wills
Author URI: http://mikewills.me
Theme: toolbox
Description: Based on the Toolbox theme from Automatic. This site is for Charlie's Repair
Version: 0.1
License: GNU General Public License
License URI: license.txt
Tags: custom-menu, sticky-post, microformats, rtl-language-support, translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
@import url("../toolbox/style.css");主题没有显示在网络管理或网站的仪表板中。对我做错了什么有什么想法吗?
发布于 2011-07-12 04:22:24
您缺少了父主题的模板名。它应该是这样的:
/*
Theme Name: Charlie's Repair
Theme URI: http://wordpress.org/extend/themes/toolbox/
Author: Mike Wills
Author URI: http://mikewills.me
Template: toolbox
Description: Based on the Toolbox theme from Automatic. This site is for Charlie's Repair
Version: 0.1
License: GNU General Public License
License URI: license.txt
Tags: custom-menu, sticky-post, microformats, rtl-language-support, translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
@import url("../toolbox/style.css");如果您有“主题:工具箱”,则需要“模板:工具箱”。
发布于 2011-07-12 04:23:47
通过mObile手机快速完成这一任务。我认为您需要将“主题:工具箱”改为“模板:工具箱”
这就是我对儿童主题的标准。
https://wordpress.stackexchange.com/questions/22697
复制相似问题