How to remove the category navigation from your header and put it in the sidebar instead
As you can see on your blog, and on this blog, there is a horizontal list of your blog categories just underneath the header.
But hey! What if you don’t want it there! What if you want it in your sidebar instead?
Simple. Here’s how.
* Log in to your admin area.
* Hover over Design and click Theme Editor
* Look to the right column and find and click header.php
* When that opens, highlight everything in the file and copy it to the clipboard. Just in case things go wrong.
* Scroll right to the bottom of the file and look for this:
<div id=”nav” class=”clearfix”>
<ul class=”clearfix”>
<?php wp_list_categories(’exclude=3&hierarchical=1&title_li=’); ?>
</ul>
</div>
It is the last thing in the file. Delete exactly what I have just pasted in and nothing else. Yours may have a few extra numbers after exclude=, but that’s fine. Just delete these 5 lines.
* Press Update File at the bottom of the page, then view your blog. The header navigation should be gone and the rest should all be intact.
* Now to get it to show in the sidebar instead, hover over Design in your admin area and click on Widgets.
* Look to the right of the page, and you will see ‘Current Widgets’, and a drop-down box with ‘Middle Content’ written in it. Click on ‘Middle Content’ and change it to ‘Sidebar’. Now click Show.
* Look down the left for the Categories widget, click Add, and move it up the list to the top (or wherever you want it).
* Now click Edit on the Categories widget you just added, and set it up however you want.
* Now click the ‘Change’ button at the bottom of the box and you’ll see the box close again. Only when it is closed, click ‘Save Changes’. The page will then reload and you will see a message at the top telling you that your changes have been saved.
And now when you look at your blog you will see your categories showing up in the sidebar
Lewis
