Can you add the complete output code for the navigation menu. The code you pasted seems to be a stripped version. Moreover, WordPress adds ‘current_page_item’ class to the list item if it is currently being viewed.
For more info, check this WordPress documentation on classes added to Navigation menu items.
Related Posts:
- Any docs for wp_nav_menu’s “items_wrap” argument?
- Does Extending Multiple Nav_Menu_Walkers Allow Nested Menus?
- Bootstrap dropdown nav pills not working with wp_nav_menu()
- Show child pages by menu order using Superfish Dropdown menu?
- Bootstrap drop down menu with wp_nav_menu
- How do I give class to the dropdown sub-menu in the wp_nav_menu?
- How to Create a Custom WordPress Navigation Menu with the Code?
- WordPress 3.5 dropdown menu
- Menu item with no page, but with dropdown
- Add css class to dropdown
- Using a shortcode to create a dropdown menu from wp_nav_menu list items
- Menu in left side don’t appears with dropdown
- getting the current sub item out of total sub items in a given dropdown (custom walker)
- How to add html attributes to the “ul” html tag with “wp_nav_menu” function?
- How to remove dropdown from wp_nav_menu
- styling wp_nav_menu – horizontal, sub-menu drop downs
- Replace the slug of parent pages with # [closed]
- wp_get_archives doesn’t take effect from css or html
- Adding archive years to my menu
- Drop Down menu expanded by default (on front page) [closed]
- Custom menu – different submenu for first menu item
- dropdown menu, with walker
- Dropdown primary navigation menu not working
- Is there any way to change the CSS class applied to 2nd level sub menu ul’s?
- WordPress menu issue – if there are child links partents won’t click
- How can I create this menu with wp_nav_menu()?
- Responsive Dropdown Menu
- Foundation Scripts not loading (custom theme)
- Reveal hidden submenus on page load – Twenty Fifteen theme
- No indication of menu
- wp_dropdown_nav function to list menu items
- How to make a drop down menu with categories
- How to add an tag when a menu item is a dropdown(or has a sub-menu) [duplicate]
- How to add posts with thumbnails to my dropdown menu?
- Should I custom code drop down menus or use a wordpress plugin?
- Keeping my Sub Menu open when hovering on its list items
- Jquery dropdown menus working locally, but not in WordPress [duplicate]
- Add a page to a subscribers account
- What is the best way to incorporate responsive dropdown navigation menu into custom theme?
- Menu items do not “open” when mouse hover over them?
- Icon not shown in Dropdown menus in Twenty Seventeen Theme
- wp_get_nav_menu_items() not working with slug
- Error “Trying to get property of non-object” with Custom Walker for wp_nav_menu
- Add Class to Specific Link in Custom Menu
- How to avoid wp_nav_menu() ID conflict?
- Creating new dynamic menu including BP links [closed]
- List parent item with all child item on child pages
- Hide menu items for visitors and filter based on role
- Add a “has-children” class to body tag?
- Custom Nav Walker sub-menu HTML construct
- How to remove trailing tags from wp_nav_menu walker
- How to scroll item in the Menu setting effectively?
- Building custom API and using wp_get_nav_menu_items to get menu items. Only works when logged in, returns nothing when I’m not
- Add custom -element to wp_nav_menu
- wp_nav_menu add some element to container
- Different fields available for different sites when when customising Menu’s
- Custom menu deletes itself
- Find out if a page has no parent
- show different admin menu to different user roles
- How to include a third level with wp_get_nav_menu_items function
- Can’t include Language switch in Nav Menu
- Bulk Custom Menu and Wp-Ecommerce
- Can only get one of two custom menus to display
- How to dynamically populate a dropdown
- wp_nav_menu not working [closed]
- how do i change the text under a navigation menu [closed]
- How should I build a custom menu walker for this setup?
- Dynamic_sidebar inside wp_nav_menu
- Hide menu from homepage
- changing theme folder name breaks menus – twentyeleven
- Submenu in sidebar custom page template
- get only the item you click on
- How to add columns to wordpress menu editor
- Current User In Custom Menu Item URL [closed]
- Creating other page than page.php
- Custom menu styling
- Additional navigation bar in header
- Dynamically populate the menu when a new category is created
- Is there any difference between widgets (used in order to manage menus) and register_nav_menus() in terms of performance?
- Menu items not clickable
- How do you show horizontally the submenu in WordPress using the nav walker?
- Add “onclick” option to header menu item
- Full submenu not displaying in wordpress
- Mobile menu not working – jQuery error?
- Header lists posts instead of showing primary nav menu
- How to separate sub-menu output and keep associated with parent
- Best way to build a 500 item menu
- Count Level 1 Childs for Custom Nav Walker WordPress
- Iterate through each menu item into a shortcode
- Showing main menu and child menu in diffent places in a same page
- “Static” Child Menu with Accordian
- Display same menu for parent and all its children
- Image menu on responsive WordPress
- Auto Filled Custom Menus for Custom Post Types?
- Permalinks linking to similar named site
- Adding Pages to Menus – No Page Hierarchy in Backend [duplicate]
- Custom navigation / menu output (walker?)
- How does WP knows which template to use for a page
- WordPress “add to menu” button not working
- Primary menu shortcode name