Static Homepage Navigation

This is a great little bit of code. What it does is create static home page link in your navigation that you could place before your wp_list_pages code, to have an active state on your home page link. This way you can use css to style the “current_page_item” class like for any other page. Here’s the code:

[sourcecode language='php']

<li class="page_item “><a href="”>Home

[/sourcecode]

Leave a Reply