admin管理员组文章数量:1122846
I'm trying to add a child theme to my wordpress installation. The theme the child should be based upon a theme called "nostalgia-landing" which is installed and works properly. I created a new folder called "nostalgia-custom" and added the the style.css with the following content:
/*
Theme Name: Nostalgia Custom
Description: Nostalgia Custom is a responsive WordPress landing page.
Author: QuanticaLabs and Christoph Halang
Author URI:
License: GNU General Public License version 3.0
License URI: .0.html
Version: 2.0.2
Template: nostalgia-landing
*/
@import url("../nostalgia-landing/style.css");
However, the theme selection in admin panel does not show my child theme and says "You only have one theme installed right now.". This is not true since there are the default themes. When I delete the child theme folder the default themes appear again in the selection.
Did I miss anything? Any ideas guys?
Regards,
Chris
I'm trying to add a child theme to my wordpress installation. The theme the child should be based upon a theme called "nostalgia-landing" which is installed and works properly. I created a new folder called "nostalgia-custom" and added the the style.css with the following content:
/*
Theme Name: Nostalgia Custom
Description: Nostalgia Custom is a responsive WordPress landing page.
Author: QuanticaLabs and Christoph Halang
Author URI: http://themeforest.net/user/QuanticaLabs?ref=QuanticaLabs
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Version: 2.0.2
Template: nostalgia-landing
*/
@import url("../nostalgia-landing/style.css");
However, the theme selection in admin panel does not show my child theme and says "You only have one theme installed right now.". This is not true since there are the default themes. When I delete the child theme folder the default themes appear again in the selection.
Did I miss anything? Any ideas guys?
Regards,
Chris
Share Improve this question edited Aug 22, 2013 at 14:28 Christoph Halang asked Aug 22, 2013 at 14:20 Christoph HalangChristoph Halang 1912 silver badges12 bronze badges 12- Can you add a directory listing or screen grab of files and folders in wp-content/themes ? – jnthnclrk Commented Aug 22, 2013 at 14:33
- Can't post images directly since I'm a newbie but here is a link Screenshot – Christoph Halang Commented Aug 22, 2013 at 14:35
- Thanks, looks good, now we would need to see the contents of nostalgia-landing/style.css. – jnthnclrk Commented Aug 22, 2013 at 14:37
- Since I bought the parent theme it is a rather long file :-/ I tried removing the import statement in my style.css with no effect, still no child or default theme visible. – Christoph Halang Commented Aug 22, 2013 at 14:40
- Screen grab of Appearance page ( /wp-admin/themes.php )? – jnthnclrk Commented Aug 22, 2013 at 14:41
2 Answers
Reset to default 4Two things come to mind:
Is
nostalgia-landing
a child theme of something (Nostalgia perhaps)? WordPress doesn't allow grandchild themes -- you can't have a child theme of a child theme. (Check thestyle.css
file in thenostalgia-landing
theme -- if there's aTemplate:
line, thennostalgia-landing
is a child theme. If that's the case, you'll need to makenostalgia-custom
a child of the original theme.)Is this a WordPress Multisite installation? If it is, you need to Network Activate both your child theme and the parent theme. If you don't activate the parent theme, you can't use the child theme.
Problem solved: My child themes folder and the enclosed files had permission 750 instead of 644 set. Changed the permission and everything is working!
本文标签: Child theme does not appear in theme selection
版权声明:本文标题:Child theme does not appear in theme selection 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736297374a1929998.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论