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