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
|
|
|
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. |
|||
|
|