How to Create a Custom Page template in WordPress. Have you ever wondered how someone their WordPress website or blog pages look completely different. In this tutorial, we will show you how to customize the page to create a custom page template fragment to use in WordPress. If you want to have a page that looks completely different than the rest of your blog, but still the custom page running on the WordPress CMS is helpful. You can also use it as a home page or landing page.
To customize the design and editing style page, HTML, and CSS knowledge will be beneficial.
You will begin to create a custom Web page opens a blank file in a text editor and paste the following code at the highest level:

<?php </code><code class="comments">/* Template Name: WPBeginnerT1 */</code> <code class="plain">?></code>

Once you add the code, save the page as: blog [TEMPLATENAME] .PHP so it will be blog wpbeginner.php this example. As long as it is a PHP file, you can name it whatever you like other structures.
The above code is just to give you the name of the template, you'll see later, WordPress knowledge, so we call template WPBeginner1, but you can call it whatever you like LandingPage, for example, archiving, contacts, etc.
This page can use all your PHP tags to other pages. If you need help, you can use our WordPress theme Cheat Sheet beginners. You can call WordPress header and footer start, or you can perform a thorough everything go solo in HTML.
If you do not call the header.php, then you must make sure to add all of the header information, such as style.css files.

 

Once you have completed editing this file save it and upload it in your theme directory (/wp-content/themes/yourthemedirectory/) where files like single.php and index.php are located.
Next you will need to login to your WordPress admin panel and Add a New Page. Since you have already written down all the text and settings in the php file, simply name the page and leave the content area blank. Look on the right hand side, you will see a box called Attributes below the publish button. Choose the template using the drag down button.

Add meta information, such as title, description, and so, if you have the search engine plugin, and publish the page. Now, this page will use the template that you specify.
However, if you leave the content option is dynamic, you need to add the content management panel.
This is especially when using WordPress as a CMS when the designer a very useful tutorial.