how to create a Page template in wordpress.?

Page templates are a specific type of template file that can be used for one or more pages.

some of the main features for page templates are listed below, Have a look :

  • that are only apply to pages, not to posts or custom posts
  • that are used to change the look or design the new page
  • if we set the name to our template, that will make easy to set the page for our specific page

To create a page template

Just copy and paste the below code into your php file

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

suppose you have created the template for home page then,

you can save this file with the name like template-home.php , or you can use home.php. its all up to you.

And to select fro admin.

Go to pages—>> Add New page

Select your new created template.

See Screenshot

template

That’s it…. your new template is started. you can add your own Html, Desugn here in php file.

On good writemyessay4me.org/ selfdiscovery, selfdefinition, and selfdirection skills.