For some reason, menus within a widget in WordPress do not get assigned classes such as the “current_menu_item” class – on top of that, when adding a class to the menu item in Worddpress > Appearance > Menu, they are not assigned the respective classes.
I want to be able to assign a current_page_item class, or any class for that matter, to highlight a currently active menu item within a widget. I’m not sure why classes are omitted from menus within a widget, but i guess it’s an oversight from the developers or something.
Can anyone help me achieve the above?
Regards,
Nick.
This is where you’re styling your .current-menu-item to be bold. However, your menu on the left is not inside the access nav element. The current-menu-item class is on your active menu item: