Hi,
I'm writing a new theme. The layout is:
Sidebar floating to the left
A container with the header and the content floating next to it.
The markup:
<div id="sidebar" style="float:left"></div>
<div id="main" style="float:left">
<div id="header>Blog title goes here</div>
<!-- end of header.php -->
<!-- begin index.php -->
<div id="content">The Loop goes here</div>
<!-- end index.php -->
<!-- begin footer.php -->
</div>
This works fine on the main index, but it doesn't work for pages and single articles. Whenever I click a link for an article or a page it would only show the contents of the latest post instead of the actual article or page.
When I moved the sidebar to footer.php and floated everything to the right it suddenly worked.
Does that mean I can't include the sidebar in the header? Or is it something else I'm missing here?