solostream

Creating different Page templates

| October 29, 2007 | 0 Comments

To create a new Page template, add the following code to the top of the page:

<?php
/*
Template Name: Home
*/
?>

The Template Name can be changed, i.e. Home can be About Us, or anything else. When you create a Page in WordPress, on the right-hand side there is a drop down box for selecting a template. The name that you enter in the above code is what will appear there.

Tags:

Category: Code Snippets

Elegant WP Themes

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.