How To Create a Custom Page Template in WordPress

| Last Updated: | In: WordPress Beginners


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.

page-template

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

Tags: , , , ,


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby.


You may also like:

Follow us!

Get Free Access of 400+ Scripts

Don't worry you'll not be spammed!

Featured eBook

WordPress Security Guide

Free Guide: Learn how to implement security guideline in your WordPress site...

DOWNLOAD

Pincode Finder

pincode-finder tool

Online Pincode Finder

Best tool to locate post Office address and pincodes of all india...

SEARCH NOW