【问题标题】:Wordpress Child Theme Not Appearing In DashboardWordpress 儿童主题未出现在仪表板中
【发布时间】:2012-09-03 13:58:57
【问题描述】:

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

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

---- 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");

【问题讨论】:

    标签: html css wordpress bitnami


    【解决方案1】:

    Template:参数错误:

    模板。 (必填)父主题的目录名,区分大小写。

    http://codex.wordpress.org/Child_Themes

    应该是Template: PlatformPro_v1.3.0

    【讨论】:

    • 到目前为止,这是我的 style.css: /* 主题名称:PChild 描述:PChild 作者:John Smith 模板:PlatformPro_v1.3.0 */ @import url("../PlatformPro_v1. 3.0/style.css");
    【解决方案2】:

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

    只要你的路径名是正确的,你上面显示的正是你应该做的。

    【讨论】:

    • 我现在激活了 Platformpro。 PlatformProChildTheme 位于 /wp-content/themes 文件夹内。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-06
    • 2013-12-03
    • 2017-06-06
    • 2014-09-05
    相关资源
    最近更新 更多