Proper Way to Create Custom Page Template In WordPress
One of the main advantages of WordPress you can create your custom page template as you like. You can see most of the WP themes have a default page template but some of the themes have different layouts. If you like to create a custom page template then here we have simple way to create a custom page template.
WordPress allows you to create a custom page template in your theme. Using this you can create your customized layout for your WordPress theme. The following steps will help you to create your custom page template properly.
Create a New Custom Page Template on Your Theme
To create a new page template first, log in to your cPanel/FTP or WP File Manager plugin. Then open the theme folder wp-content->Themes->Theme Folder and duplicate page.php with the name of you want (e.g. page-fullwidth.php, page-about.php ), If you want to know more information about Template Hierarchy then click here.
Once you duplicated the page.php with the name of page-fullwidth.php then add template name at the top of create page template like below.
<?php/* Template Name: Full Width Template */?>
If you added the template name at top of the page, then customize as you want. The final step is you need to select the create page template on your Admin Dashboard -> Pages -> Add New Page -> In Righten Side Page Attributes -> Select Created Template (Full Width Template) for example below you have a screenshot.
Once you selected the template then enter the page title name & content and publish the page. After that preview and you can see created custom layout appears on your page.
I hope this article will help you to create a custom page template on your WordPress theme. Your comments are welcome here and if you like this article share it with your friends.
Creative Designer & Developer specialist by the spirit and a loving blogger by thoughts. If you have any questions let me drop an email with the article name to the following email id: email@example.com