Hello,
I am setting up a clients site using WordPress, but for the homepage I need to use a different header and footer file from the rest of the site.
What is the best method for setting this up?
Thanks in advance,
Adam
Hello,
I am setting up a clients site using WordPress, but for the homepage I need to use a different header and footer file from the rest of the site.
What is the best method for setting this up?
Thanks in advance,
Adam
Take a look at Conditional Tags to help you.
<?php
if (is_home() ) {
get_header('myheader'); // include header-myheader.php
get_sidebar('xyz'); // include sidebar-xyz.php
} else {
get_header();
get_footer();
}
?>Great,
I will try that when I get in the office tomorrow morning!
Thanks for your help.
Adam
This topic has been closed to new replies.