【发布时间】:2019-09-06 10:42:31
【问题描述】:
我刚刚开始了解 WordPress 模板。
我制作了一个名为“attribute_information_popup.php”的非常简单的模板,并将其放在我的子主题中的文件夹“page_templates”中。
<?php
/*
* Template Name: Attribute Information Popup Page
* description: Template for making pages used in the product attributes information popup.
*/
?>
<h1>test</h1>`
当我进入“创建页面”时,我没有在页面编辑器右侧的“页面属性”部分的下拉列表中看到我的模板。
【问题讨论】:
-
可能是因为您使用了不正确的文件夹名称“page-templates”和 - 而不是 _ developer.wordpress.org/themes/template-files-section/…
标签: wordpress templates child-theming