如何将自定义wordpress页面模板保存在主题文件夹以外的不同文件夹中 [英] How to keep custom wordpress page templates in different folder other than the theme folder
本文介绍了如何将自定义wordpress页面模板保存在主题文件夹以外的不同文件夹中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有很多自定义 wordpress 页面模板,我想将它们保存在不同的文件夹中.喜欢 /pages/
I have many custom wordpress page templates and I want to keep them in different folder. Like /pages/
但是,问题是当我将它们保存在主题文件夹以外的不同文件夹中时,自定义页面选项会从 wordpress 页面模板菜单中消失.
But, the problem is when I keep them in different folder other than the theme folder, the custom page options disappear from wordpress page template menu.
如何将页面模板保存在不同的文件夹中,并仍然在 wordpress 页面模板菜单中访问它们?
How can I keep the page templates in different folder and still access them in wordpress page templates menu ?
推荐答案
您想使用子主题.
http://codex.wordpress.org/Child_Themes
这篇关于如何将自定义wordpress页面模板保存在主题文件夹以外的不同文件夹中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文