【问题标题】:How to create wordpress child theme if folder name and theme name is different?如果文件夹名称和主题名称不同,如何创建 wordpress 子主题?
【发布时间】:2016-12-05 00:57:52
【问题描述】:

我有一个名为 Experon_Pro 的主题,在 style.css 中,主题名称是 experon,这是一个付费主题,工作正常。

为了创建子主题,我创建了文件夹 Experon_Pro-child 并在子主题 style.css 中添加了以下代码,并将相同的 functions.php 从父主题复制到子主题。但它仍然说缺少父主题?

子主题 style.css 包含以下详细信息。

/*
Theme Name: Experon Pro Child
Theme URI: http://www.thinkupthemes.com/themes/experon-pro/
Author: ThinkUpThemes
Author URI: http://www.ThinkUpThemes.com
Template: experon
Description: Experon is a multi-purpose professional Premium WordPress Theme ideal for a business or blog website. The theme is responsive, HD retina ready and comes with 600+ Google Fonts which can easily be selected directly from the theme options panel. Never code again with the awesome page builder. Simply drag, drop and you're done! It couldn't be easier to create stunning websites with the beauty of Harest.
Version: 1.6.0
License: GNU General Public License
License URI: /licenses/license.txt
Tags: black, dark, one-column, two-columns, right-sidebar, left-sidebar, fixed-layout, responsive-layout, fluid-layout, custom-header, custom-menu, full-width-template, theme-options, threaded-comments, editor-style, featured-images, post-formats, rtl-language-support, sticky-post, grid-layout, footer-widgets, blog, e-commerce, education, entertainment, news, photography, portfolio
Text Domain: experon-child
*/

【问题讨论】:

    标签: php wordpress


    【解决方案1】:

    Template 行应该对应父主题的directory name,所以Template 将是experon_pro

    【讨论】:

      猜你喜欢
      • 2015-10-14
      • 2016-02-24
      • 1970-01-01
      • 2013-12-03
      • 2017-03-06
      • 1970-01-01
      • 2012-09-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多