Quantcast
Channel: Zahlan's Blog
Viewing all articles
Browse latest Browse all 7

How to create a custom page template in WordPress

$
0
0

How to create a custom page template in WordPress:

Step 1:

Create a new file in your wordpress theme folder and name it (for example) custom-template.php

Step 2:

Edit the file and put the following code in the top of  it:

<?php
/*
Template Name: Custom Template
*/
?>

then Save the file.

Step 3:

go into your WordPress control panel, go to Pages menu, click add new, in the left side you will find a box called Page Attributes, from the template option menu you can choose the template file you had created like shown in the following image.

That’s it :)


Viewing all articles
Browse latest Browse all 7

Trending Articles