简体   繁体   English

如何在Wordpress子主题中添加自定义页面模板?

[英]How to add custom page template to wordpress child theme?

I want to have unique css styling in wordpress. 我希望在wordpress中拥有独特的CSS样式。 I heard about page templates, but do they work on child theme. 我听说过页面模板,但它们可用于子主题。 Is it possible to create template for my page in my child themes folder? 是否可以在我的子主题文件夹中为我的页面创建模板? I am using WPbakery visual composer for my content. 我正在为我的内容使用WPbakery视觉作曲家。

Is it enough to write a page-659.php and put it to my child-theme and build my content as simple html page or are there any other solutions, to have a part content from parent theme's templates? 是否足以编写一个page-659.php并将其放入我的子主题并将我的内容构建为简单的html页面,还是有其他解决方案,从父主题模板中获取部分内容?

How to transfer a full content from parent theme for editing in my child theme page template? 如何从父主题传输完整内容以便在我的子主题页面模板中进行编辑? My parent theme uses framework, I want to skip it, and edit raw code? 我的父主题使用框架,我想跳过它,编辑原始代码? Is copy source code from web a good idea? 从网络复制源代码是个好主意吗?

You are kinda stating the obvious... have you tried it? 你有点明白......你试过吗? You seem to have the steps all figured out... and you're spot on. 你好像已经找到了所有的步骤......而且你已经找到了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM