Seeting Active Nav for Bootstrap in WordPress


OK , I have a Custom Theme generated by Bootstrap. Currently I just added a Navbar (navigation to the theme and I am having trouble on setting ACTIVE navbar in each active page.(by adding active class to the li)
For example if I am in Contact us page how I can force the navbar to make the contact us nav active!
I alreadt tried

<li <?php is_page( 'Home' ){echo 'class="active"'}> Home</li>
<li <?php is_page( 'About us' ){echo 'class="active"'}> About us</li>

can you please let me know how I can do this?

, Mona Coder 10 years 2013-11-18T06:09:17-05:00 0 Answers 89 views 0

Leave an answer