首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >找不到基于工具箱的子主题

找不到基于工具箱的子主题
EN

WordPress Development用户
提问于 2011-07-12 03:09:06
回答 2查看 318关注 0票数 0

我正在尝试制作一个工具箱主题的子主题,并在我的多站点WP 3.2安装中使用它。

我创建了一个名为wp-content/themes/charlie-repair-toolkit/的文件夹,然后在该文件夹中创建了包含以下信息的style.css (其中一些信息是从原始主题复制的):

代码语言:javascript
复制
/*
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");

主题没有显示在网络管理或网站的仪表板中。对我做错了什么有什么想法吗?

EN

回答 2

WordPress Development用户

回答已采纳

发布于 2011-07-12 04:22:24

您缺少了父主题的模板名。它应该是这样的:

代码语言:javascript
复制
/*
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");

如果您有“主题:工具箱”,则需要“模板:工具箱”。

票数 2
EN

WordPress Development用户

发布于 2011-07-12 04:23:47

通过mObile手机快速完成这一任务。我认为您需要将“主题:工具箱”改为“模板:工具箱”

这就是我对儿童主题的标准。

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

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

复制
相关文章

相似问题

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