My Wordpress index/home page has all my posts on it. I have the following code which lists the categories on my page including an "all" since all the posts are listed on this page.
HTML
<?php
$args = array(
'show_option_all' => 'All posts'
);
?>
<h3><?php wp_list_categories($args); ?></h3>
CSS - highlights 'all' in the list since its the page you're on.
li.cat-item-all a{
font-weight: bold;
}
Each category link opens up the archive page with the posts tagged with that category.
I want this list to act as a navigation, with the category chosen 'highlighted' when you select it. Similar to how home would be highlighted when you're on the home page. But all the links link to the archive page so I'm not sure the coding
EDIT - output on home page
I want this to appear on my archives page, but with the category that they selected highlighted instead of 'ALL'