Creating a Custom WordPress Home Page Template.


WordPress allows any page to be configured as the home page. the home page is set under under “Settings > Reading”

To create a new template for the page copy page.php … modifying a minimalistic page is the quickest way to create the page … to a new file name homepage.php and modify the beginning of the file like so:

<?php
/**
* Template Name: New-Home-Page
*
* The "Template Name:" bit above allows this to be selectable
* from a dropdown menu on the edit page screen.
*/

get_header(); ?>

Reactivate the template and under the edit page

You will see New-Home-Page in the dropdown. Customize the template page (homepage.php) as desired.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: