wordpress tutorial – How to create template with easy steps

Here in this article We will show, How to create template using easy steps. We written many wordpress tutorials about creating many types of custom templates. For custom pages always we need new look and feel. Some time we need separate functionality for specific pages.

Following are list of template wordpress tutorials which might be useful for you.

create author page template in wordpress theme
create links template page in wordpress theme
create contact us template page in wordpress
how to create contact us page without plugin
 

wordpress tutorial – How to create template

Creating custom page template is very easy, For creating custom template you need to create php file in your wordpress theme folder.

How to create template

You need to create new php file in wrodpress theme folder. Go to your theme’s folder (wp-content/themes/your-theme).

Create a New PHP File

Always create custom template with extension -page.php . Here I am giving example of creating contact us page. So we will create page called “contact-us-page.php”.

Add Following Code

Use following code and just copy paste following code in contact-us-page.php file

<?php
/*
Template Name: Contact Us
*/

 

Select Template from drop-Down menu

So, your Custom Page Template is now built, but you will still need to choose it whenever you want to use it. You do that by going to the right-hand side of the screen whenever you’re writing a Page. You should see a section there that says, “Templates” with a pull-down menu.

how to create contact us page without wordpress plugin
how to create contact us page without wordpress plugin

If you need full code of contact us page than check following URL:

create contact us template page in wordpress

Using above easy code you can create custom page template in any wordpress theme. You can create custom styling for template page which will be applicable for only selected pages.