WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.