Dynamic Menu Highlighting
-
Im looking for a really simple condition I can use along with wp_get_nav_menu_items() so that I can tell which menu item should be labeled as current.
I tried using if( is_page($item->ID) ) but it doesn’t always highlight a menu item, sometimes there are no active menu items even though Im on the page I click through the menu.
any help is appreciated.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Dynamic Menu Highlighting’ is closed to new replies.