How to edit a custom page in WordPress

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.