Setting a template header on a WordPress file

WordPress Code Snippet

This is a quick snippet to let you know how to add a template header to your WordPress file so it can be selected in the WordPress admin for use. Say for example you want to have a different page template for your contact page then you will have to create a separate template file for this.

Just add the following right at the top of the WordPress file before the header call and make sure that you change the bit that says ‘Template Name; to that you want it to be called.

/* Template Name: Template Name */