What is a wordpress template?
A wordpress template is a .php file that will control how your wordpress page would look like. So let’s say you want a specific page to have the same look of the theme, but with no navigation. A template will make it possible. But how? You should first know how to create a template.
Its easy. Step 1: create a new .php file using an editor like notepad, dreamweaver or other similar software. In dreamweaver, click File > New. Then on the new window choose page type as PHP and press create.
Step 2: open your page.php. Copy all the contents to the new .php document. You can remove some line of code. For example to have a one-column page just remove
<?php get_sidebar( ) ?>
Step 3: on the new document, add this on the top most part:
Template Name: Full-width, no sidebar
You can choose whatever name you like, but I suggest to keep it short and descriptive. It will be shown in the page attributes when you create a page. See image below.
Lastly, save your .php file to any name you want, it does not matter. After that, upload it to your site. It should be in the same directory where your page.php is.
That’s it. You have created a new template. When you create a page, just choose it from the page attributes as shown in the image above.