我有一个名称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
*/发布于 2016-07-30 19:46:53
模板行应该与父主题的directory name相对应,因此模板将是experon_pro。
https://stackoverflow.com/questions/38673542
复制相似问题