Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I create Widget for Vertical menu Now I am trying to get selected or current menu using wp_nav_menu

Any one know how to Add current class when selected in wp_nav_menu

share|improve this question

1 Answer 1

Are you looking to add a CSS class to the menu item that is currently the active screen?

If so, this is handled in WordPress by default with the ".current-menu-item" CSS class.

share|improve this answer
    
No not showing me that default classess –  softsdev Nov 28 '12 at 11:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.