How to create a page template

How to create a page template

Create templates of pages and also post online them the WordPress application allows. It is very simple to do it. In only several minutes it is possible to create a new template, to set the necessary settings and to post online it. It is required to you • - WordPress application; • - computer with Internet access. Instruction 1. Download and install the WordPress application. Files which define templates are located in the folder with a subject. To create own template, it is enough to open the new file. 2. Set a name to your new template, for example, of snarfer.php. It is possible to call the file somehow, the main thing that it was with the .php extension (the reserved Theme filenames command allows to learn about names which are forbidden to be used a system; these are the special names reserved by the application for internal use). 3. Use one of already existing application templates if you wish to save time. On their basis it is possible to create own template, having copied the necessary file, for example, from index.php or page.php in just created snarfer.php then issue heading as it is stated above. 4. Correct the PHP and HTML code. It much quicker, than to gather everything ""from scratch"". Issue a template depending on your imagination and the pursued purpose. Place in it all necessary data. It is better to specify the most often used text structures. 5. Save a page template. Now the application will automatically place it in the folder with a subject where it will become available for the choice during creation or changes of the page. 6. Otstrukturiruyte templates for future website. For this purpose through the Administration menu pass to the Write Page tab and click on the Page Parent list which is dropping out in the upper corner. Here it is possible to specify the list of all created templates. For conversion of a template to the parent page or the subpage select the corresponding item in a drop-down menu. Now you received correctly issued directory of pages ready to placement in network.

Author: «MirrorInfo» Dream Team


Print