How To Create A Page Template

Table of contents:

How To Create A Page Template
How To Create A Page Template

Video: How To Create A Page Template

Video: How To Create A Page Template
Video: How To Make Templates In Pages 2024, May
Anonim

The WordPress application allows you to create page templates, as well as post them on the network. This is very easy to do. In just a few minutes, you can create a new template, set the desired settings and post it on the Internet.

How to create a page template
How to create a page template

It is necessary

  • - WordPress application;
  • - a computer with Internet access.

Instructions

Step 1

Download and install the WordPress app. The files that define templates are located in the theme folder. To create your own template, just open a new file.

Step 2

Give your new template a name, for example snarfer.php. You can name the file whatever you want, as long as it has the.php extension (the reserved Theme filenames command allows you to find out about the names that the system is prohibited from using; these are special names reserved by the application for internal use).

Step 3

Use one of the existing app templates if you want to save time. Based on them, you can create your own template by copying the required file, for example, from index.php or page.php to the newly created snarfer.php, and then style the header as indicated above.

Step 4

Correct the PHP and HTML code. This is much faster than typing everything from scratch. Design the template depending on your imagination and the goal pursued. Put all the required data into it. It is better to indicate the most commonly used text structures.

Step 5

Save the page template. Now the application will automatically place it in the theme folder, where it will become available for selection when creating or editing a page.

Step 6

Structure templates for the future site. To do this, through the Administration menu, go to the Write Page tab and click on the "Page Parent" drop-down list in the upper corner. Here you can specify a list of all created templates. To convert a template to a parent page or subpage, select the appropriate item in the drop-down menu. You now have a well-formed directory of pages, ready to be posted on the web.

Recommended: