Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wordpress页面布局/模板_Wordpress_Templates - Fatal编程技术网

Wordpress页面布局/模板

Wordpress页面布局/模板,wordpress,templates,Wordpress,Templates,我成功地创建了我的第一个wp主题,但我有一个小问题,我相信它缺乏经验 这是我的问题; 我基于dreamweaver中的index.html创建了主题。现在我正试图添加一个新页面(About),但问题是我的index.html和About.html的内容布局不一样 我可以创建一个模板,这样我就可以在wordpress的每个页面中选择我想要保留的区域和我不需要的区域吗?是的,这里是自定义页面模板的codex链接 你创建一个新的模板,如果你愿意的话,让它看起来和默认的完全不同,然后将该模板应用到后端

我成功地创建了我的第一个wp主题,但我有一个小问题,我相信它缺乏经验

这是我的问题; 我基于dreamweaver中的index.html创建了主题。现在我正试图添加一个新页面(About),但问题是我的index.html和About.html的内容布局不一样


我可以创建一个模板,这样我就可以在wordpress的每个页面中选择我想要保留的区域和我不需要的区域吗?

是的,这里是自定义页面模板的codex链接

你创建一个新的模板,如果你愿意的话,让它看起来和默认的完全不同,然后将该模板应用到后端的页面上,如下图所示

您应该添加

<?php
/*
Template Name: Name of your template
*/
?>


因此被识别为模板,将文件保存在.php

中似乎我缺少仪表板上的选项卡,如何添加一个?除非有另一个模板要应用,否则模板选项卡将不存在。如果由于某种原因“页面属性”完全缺失,请单击右上角的屏幕选项,并在该选项旁边打勾。页面属性在那里,我完全错过了您关于自定义模板的链接。。Thanx我会查一查。没问题,很高兴能帮忙-享受创作自由!:)