admin管理员组文章数量:1301528
I am trying to create a child theme for the Fitness Hub theme. I'm following this guide (/), when it comes to part 2. it makes it clear I need to add a 'Template' header in the style.css (of the child theme), however there isn't a template name in the parent theme's style.css. So it's not clear to me what this template name should be. I used 'Template: fitnesshub', but this doesn't work, the child theme does not generate. I get the following error in my themes directory (on the browser):
The parent theme is missing. Please install the "fitnesshub" parent theme.
When I install the parent theme (clicking the link) the same issue occurs.
TIA.
I am trying to create a child theme for the Fitness Hub theme. I'm following this guide (https://developer.wordpress/themes/advanced-topics/child-themes/), when it comes to part 2. it makes it clear I need to add a 'Template' header in the style.css (of the child theme), however there isn't a template name in the parent theme's style.css. So it's not clear to me what this template name should be. I used 'Template: fitnesshub', but this doesn't work, the child theme does not generate. I get the following error in my themes directory (on the browser):
The parent theme is missing. Please install the "fitnesshub" parent theme.
When I install the parent theme (clicking the link) the same issue occurs.
TIA.
Share Improve this question edited Mar 16, 2021 at 9:42 dwright asked Aug 19, 2019 at 19:54 dwrightdwright 1034 bronze badges1 Answer
Reset to default 1As stated in the Theme handbook (https://developer.wordpress/themes/advanced-topics/child-themes/)
you need to use the parent theme dir name in the 'Template' header. In your case the template name would be.
Template: fitness-hub
本文标签: Creating a child theme How do I find the template name of the parent directory
版权声明:本文标题:Creating a child theme: How do I find the template name of the parent directory? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741678301a2392014.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论