如果文件夹名称和主题名称不同,如何创建wordpress子主题?

时间:2016-07-30 11:41:22

标签: php wordpress

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

为了创建子主题,我创建了文件夹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
*/

1 个答案:

答案 0 :(得分:0)

模板行应与父主题的directory name对应,因此模板将为experon_pro