program development

How to edit website pages using wordpress

In wordpress, you can write a new page by "composing a page", but this method is the same as writing an article, just editing the page content like an article,[…]

article directories

In wordpress, you can write a new page by "composing a page", but this method is the same as writing an article. The only thing is that the page content is edited like an article. The page layout is still the same as a template, and the page layout style cannot be customized. However, we can define the content, style and layout of the page by creating a page template, and customize the page by setting the page to adopt the newly created page template. The specific steps are as follows:

Use a text editor to create a php file named abc under the template directory, enter the following code, and save the abc.php file in utf-8 format.

This part of the code tells wordpress that this is a page template called abc.

Then log in to the wordpress backstage, click "Compose","Compose Page" to open a new page, enter the title name, such as ABC, do not need to enter content, find the "Page" or "Page Template" column in the lower right corner of the page. If you have abc.php correctly saved in the template directory, then you can see the ABC option in the drop-down menu.