bsutcliffe – thanks for the quick reply!
I’ve created a page specifically for the home page and I have set this to be the home page as a static page.
I then created a template called main.php and uploaded it to the theme folder, and then I made sure that the page in wordpress used the main.php template.
This seems to work fine, but it now does not show my usual sidebar but one that is designed for posts, see below:
This is sidebar.php, and displays content NOT destined for the home page, but for posts pages, so all the conditional stuff i there that says “if this is a page or if this is the home page” is ignored
<div id="sideBar">
<?php /* If this is the frontpage */ if ( is_front_page() ) { ?>
<img src="intro.jpg" alt="Cooking Parties!" />
<?php } ?>
<?php /* If this is a page */ if (is_page()) { ?>
<div class="colourOne">
<p><a href="/2009/parties/">Book a Pudding Pie cookery party..</a></p>
</div>
<div class="colourTwo">
<p><a href="/2009/courses/">Learn to cook with home based courses..</a></p>
</div>
<div class="colourOne">
<p><a href="/2009/ingredients/">See the ingredients we use in our food..</a></p>
</div>
<div class="colourTwo">
<p><a href="/2009/shop/">Shop for Pudding Pie vouchers & stuff</a></p>
</div>
<div class="colourOne">
<p><a href="/2009/category/recipes/">Browse our free recipes for you to try..</a></p>
</div>
<div class="colourTwo">
<p><a href="/2009//contact-us/">Contact Us</a></p>
</div>
<?php /* If this is the frontpage */ if ( is_front_page() ) { ?>
<div id="twitter_div">
<h2 class="sidebar-title">Twitter Updates</h2>
<ul id="twitter_update_list"></ul>
<a href="https://twitter.com/pudding_pie" id="twitter-link" style="display:block;text-align:right;">follow me on Twitter</a>
</div>
<?php } ?>
<?php } else { ?>
<h2>Categories;</h2>
<ul id="categories">
<?php wp_list_categories('title_li='); ?>
</ul>
<?php } ?>
</div>
What am i doing wrong?