【问题标题】:The parent theme is missing. Please install the "ABC" parent theme缺少父主题。请安装“ABC”父主题
【发布时间】:2012-02-21 11:23:43
【问题描述】:

我安装了一个 wordpress-3.3.1 实例和两个主题。主题 A 是父主题,主题 B 是子主题。

我正在尝试制作 B 的子主题 C,但我在 wordpress 中收到一条消息:

缺少父主题。请安装“B”父主题。

是否可以在 Wordpress 主题中进行双重继承?

【问题讨论】:

    标签: php wordpress wordpress-theming


    【解决方案1】:

    将名为 index.php 的文件添加到 Theme B 似乎会触发 Theme C 显示为“工作”(因此您可以激活它)。

    我猜你可以在 主题 C 中的新 index.phprequire_once 主题 A 中的 index.php 文件。

    【讨论】:

      【解决方案2】:

      在我的例子中,父主题文件夹是north-wp,但在我看到的子主题CSS中 Version: 1.0.0 Author: fuelthemes Author URI: http://themeforest.net/user/fuelthemes Template: north Text Domain: north

      缺少的是模板中的附加 -wp:因为 WordPress 将主题目录名称作为参考。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2012-05-29
        • 2015-09-29
        • 2018-10-20
        • 1970-01-01
        • 2018-04-16
        • 2014-08-17
        • 1970-01-01
        • 2013-11-10
        相关资源
        最近更新 更多