How To Create a Custom Page Template in WordPress

If you are WordPress beginners then i would suggest to pay close attention in this post, as i am going to explain you How To Create a Custom Page Template in WordPress. This is very easy and simple steps to create your own custom page templates.

WordPress page templates are a specific type of file which you can create within your current theme’s folder that can be applied for a specific page OR groups of several pages.

Bellow are some of features of page templates :

1) Its are used to change the look and feel of a page or group of pages.
2) You have full control over page editing to what template will be render the contents.
3) You can be used for a single page, a page section.

Page Templates

Benefits of Page Templates

There are several benefits of using page templates like you can display your site’s content dynamically on a page, news updates, calendar events, media files, event videos and much more. Bellow are the common page templates type :

1) One-column
2) Two-column with a sidebar on the right
3) Two-column with a sidebar on the left
4) Three-column
5) Full-width page template

Steps To Create Page Template

Go to your current active theme’s folder and create a your-template.php page and copy paste bellow code.

Bellow this code add your dynamic contents like text, images, videos etc. Bellow code will display your page contents which you have added from admin panel. Copy paste bellow code and save it.

After completed above steps login in your website admin panel and navigate to Pages => Add New. Search Page attributes section and select page template you have created from drop down.


Hope this help you to create a custom page template. Please do like and share with your friends if you like.

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:

Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

Article Tags: , , , ,