assigning “active” class to navigation--wordpress

Tags: css wordpress
Question!

I need to assign an "active" class to my main-level navigation rendered by wordpress.

Here's my HTML:

	<li><a href="/">Home</a></li>
	<?php wp_list_pages('title_li=&exclude=21'); ?>


Answers

See WP Codex for adding classes/ids to your wp template:

By : mozami


This video can help you solving your question :)
By: admin