How to Create a Custom Template for your page for your WordPress theme
Each page template has a template name, User can choose by editing their page, this option is available at Pages > Add New > Attributes > Template,
So users have options to choose their customized template while creating or editing the page
for example, if you like to create a full-width page for services
- Create a file in your theme directory,
- then type the below code to create a custom template for your page, post, or custom post type
Template Name: Full Width
Template Post Type: post, page, custom_post
// Page code here...
After creating the file your page, post, and your custom post type page will get your template “Full Width” in the right side document tab.