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
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityAre 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.