首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如果文件夹名称和主题名称不同,如何创建wordpress子主题?

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

Stack Overflow用户
提问于 2016-07-30 19:41:22
回答 1查看 498关注 0票数 0

我有一个名称Experon_Pro的主题,在style.css的主题名称是专家,这是一个付费的主题和工作很好。

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

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

代码语言:javascript
复制
/*
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
*/
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-07-30 19:46:53

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38673542

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档