views:

34

answers:

2

Hi there I am realtively new to wordpress so please bare with, I am creating a custom theme, and so far it is going ok,

I current have index.php, header.php, footer.php and sidebar.php I have now hit a bit that has been puzzling me for a couple of days. My home page has a slightly different layout to other pages, how do I theme for that change?

My website is essentially made up, of 'static' pages and 2 posts pages, what can I do so that the homepage looks different to the other pages?

Thanks

A: 

You need to use the built-in functions from wordpress such as is_home() and is_front_page().

Conditional Tags

Jage
+1  A: 

Create a page template called home.php. WordPress will use it automatically for the start page. Example:

<?php
/**
 * Template Name: Home
 */
get_header();

// Do your regular page.php stuff

get_footer();

See also the codex page an Conditional Tags.

toscho
I tried this method and it does not seem to work, it does not use the home.php file
sico87
Which file used instead?
toscho