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


Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>