Wordpress儿童主题没有出现在仪表板中

时间:2012-09-10 16:51:29

标签: html css wordpress bitnami

根据我的理解,我访问我的网站仪表板>外观>主题,我应该选择我创建的子主题。但它并没有出现在那里。

这是我的主题文件夹的目录结构:

---- wp-content
   ----- themes
      ----- PlatformPro_v1.3.0
           ----- style.css
       ----- PlatformProChildTheme
            ----- style.css

这正是我在PlatformProChildTheme style.css中所拥有的:

/*
Theme Name:     PChild
Description:    PChild
Author:         John Smith
Template:       PlatformPro_v1.3.0
*/

@import url("../PlatformPro_v1.3.0/style.css");

2 个答案:

答案 0 :(得分:3)

Template:参数错误:

  

<强>模板即可。 (必填)父主题的目录名称,区分大小写。

http://codex.wordpress.org/Child_Themes

应该阅读Template: PlatformPro_v1.3.0

答案 1 :(得分:0)

子主题是激活主题的一部分。因此,如果您激活了Platformpro,并且您在父主题文件夹中有子主题文件夹,则一旦您激活父主题,它将被激活。

只要您的路径名称正确,您上面显示的内容就是您应该做的。

相关问题