Create custom page template in Roots
April 10, 2013 · 1 min read
First create a file inside wp-content/themes/roots
with this convention page-filename.php
. So in my case, I named it page-ajmalafif.php
.
Inside the file, you can customize what to include in it, by default (taken from page-custom.php
) it'll be;
<?php
/*
Template Name: Ajmal Afif's
*/
?>
<?php get_template_part('templates/page', 'header'); ?>
<?php get_template_part('templates/content', 'page'); ?>
For the sake of simplicity, let's settle with that for now and we tweak it later.