RSS Amplifier

Ajmal Afif — RSS Feed · Apr 10, 2013

Create custom page template in Roots

0
Sign in to vote or save

Ajmal Afif

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;

1<?php

2/*

3Template Name: Ajmal Afif's

4*/

5?>

6

7<?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,

byAjmal AfifAjmal Afif

Read the original on ajmalafif.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.