How To Create A WordPress Page Template
In this video, I show you how to create a WordPress page template. Page templates are file based, and all you need to do is create a new php file and add the appropriate metadata as a comment.
If you are using a theme that’s not your own, make sure you use a child theme.
<?php
/**
* Template Name: Test Template
* @package ScottsWebDev
*/
Replace the template name with the name of your template, and the package with the name of your package (this can be whatever you want).
Save as template-yourtemplatename.php (replacing yourtemplatename with your actual template name)