Create custom page template in Roots
Published on 10th Apr 2013
First create a file inside
wp-content/themes/roots with this convention
page-filename.php. So in my case, I named it
Inside the file, you can customize what to include in it, by default (taken from
page-custom.php) it'll be;
1<?php2/*3Template Name: Ajmal Afif's4*/5?>67<?php get_template_part('templates/page', 'header'); ?>8<?php get_template_part('templates/content', 'page'); ?>
For the sake of simplicity, let's settle with that for now and we tweak it later.
This note was last updated on 24th Oct 2022,
Newer note →
3rd edition of ajmalafif.com — site redesign
It took me few weeks staying up late at night to finish up the 3rd edition of my personal site. After tinkering with few static generators (assemble.io, Harp, Ghost), I finally settled down with Jekyll. Also, this is the first time I mocked up my site before I started with coding it.
Last updated on 24th Oct 2022