In Wordpress, you can use "write page" to write a new page. However, this method is the same as writing an article. It only edits the page content like an article, and the page layout is still the same as the template, you cannot customize the layout of a page. However, you can create a page template to define the content, style, and layout of the page. You can use the new page template to customize the page. The procedure is as follows,
InTemplate directoryCreate a PHP file named "ABC" and enter the following code to save the ABC. php file in UTF-8 format.
1 <? PHP 2 3/* 4 Template Name: ABC 5 6?> 7
This part of the code tells WordPress that this is a page template named ABC.
Log on to the WordPress background and click "write" and "write page" to open a new page. Enter the title name, such as ABC, without entering any content, in the lower-right corner of the page, find the "page" or "Page Template" column. If you already have ABC. PHP is correctly saved in the template directory. You can see the ABC option in the drop-down menu.
Select ABC, select the custom page template, and click "Post.
Now you have created a custom page named ABC. If you have a set page navigation bar on the homepage, you can see that the ABC button is added to the navigation bar.
Click ABC to open the new custom page. You can see that the content, style, and layout are different from the existing template, which is the HTML code content in ABC. php.
You can also set this custom page as the blog homepage. In the background, click "option" and "read", set the homepage to static, select ABC as the homepage, and update the options. In this way, the custom page is displayed first when you open a blog.
[Transfer] http://hi.baidu.com/yitao/item/e5a412c21cb5e9340831c63e