This theme you see here, Blix, doesnt have the sidebar shown by default on pages. This doesn’t suit me, as I need the navigation that lives in the sidebar for my pages. Blix is setup for a few pages which automagically appear in the horizontal menu under the header graphic - fine for some, but I will end up with 20-30 pages in several levels.
Since I couldnt find a great deal of help from the wordpress codex / forums etc, I thought I would write the process down here for posterity.
2 Things need changing to add a sidebar to the blix pages -
1.) Header Template
change the following line
<body><div id="container"< ?php if (is_page() && !is_page("archives")) echo " class=\"singlecol\""; ?>></div></body>
You want to add a # in front of the if statement to stop it executing -
<body><div id="container"< ?php # if (is_page() && !is_page("archives")) echo " class=\"singlecol\""; ?>></div></body>
This prevents the content div getting the class “singlecol” which is normally used to expand the main content div to take up all the available space, which would leave no room for the sidebar and break the layout.
2.) Pages Template
At the bottom of this file:
<!-- /content -->
< ?php get_footer(); ?>
Add the get sidebar code:
<!-- /content -->
< ?php get_sidebar(); ?>
< ?php get_footer(); ?>
At the most basic level thats it - you should have a sidebar on your pages. Right now it will be a little empty, as many of the sidebar features are inside if statements that only show on certain types of pages. You can either edit these or put seperate if statements to format the sidebar just for dispay on pages - its up to you.














