Change your active class name in your css. WordPress adds the following active classes, depending on the context of the active state:
current-menu-item
, current-menu-ancestor
, current-menu-parent
, and current-page-ancestor
Related Posts:
- Custom Nav walker display current menu item children, or siblings on no children
- Add a custom walker to a menu created in a widget
- Does WP REST API have a built in route for calling menu?
- wp_nav_menu remove class and id from li
- How can I add (custom) modules to Appearance -> Menus?
- wp_nav_menu() doesn’t apply correctly classes and IDs to menu and container
- How to set limit only on top levels of wp_nav_menu?
- How can I remove a menu item programmatically?
- Using string instead of object class instantiation on the walker argument breaks wp_nav_menu
- Using Image Links in WordPress Navigation Menus Instead Of Text Links
- When add wordpress page in menu it converted in to custom link
- Add items to a menu dynamically
- How can I add a sub menu to an existing navigation menu in WordPress?
- How do I create a magazine type menu – sub-menu setup using wp_nav_menu and child of twentyten? [closed]
- Adding different classes to anchor in navigation menu
- Main menu – get rid of titles?
- Arrow down in menu not displaying
- How to gain access to each menu item in wordpress?
- add span to wp_nav_menu widget
- How to get wordpress nav menu outside of wordpress system?
- Second nav is merged with the first in mobile
- Import menu tree to custom menu from csv or xml, many nested menu points
- Create Dropdown menu Using wp_nav_menu() function
- Update Nav Menu Items Programmatically
- Show menu item only if user is logged In (not word press login)
- Custom menu output
- Programmatically create and place a nav menu in a theme location?
- Top Menu showing as Plain text before page load [closed]
- Show menu based on parent & ancestor
- Set the checkbox as checked by default in menu item page
- Add Button to Bottom of Mobile Menu
- how to remove the top navigation bar or header top on wordpress website?
- Add class active to static menu
- Show Home Link In wp_nav_menu but only on primary menu
- Add active class to top-level menu items when viewing single for that post type
- How to use buttons elements for tgetWordPress menu items?
- Sorting child item of navigation menu using code in wordpress
- I want to hide the navigation menu on a particular page
- automatically append menu parent as first item in submenu with nav_walker
- Add active class to ul container menu
- Change hyphen/dash for vertical line in menu [closed]
- Help with walker for nav
- API for wp menu hacks
- wp_list_pages sort order by custom nav menu order
- Rename menu items for All except super admin
- Displaying Nav Menu
- Adding toggle-able element after menu item
- swap out only main menu for logged in users
- Menu Not Showing on Mobile
- Add custom class to li element which has children
- How to Show Different Menus to Logged in Users in WordPress [duplicate]
- Unable to get menu pattern using a walker
- Menu not adding the right items
- get only the item you click on
- Output Post ID for all nav_items
- How can I add a class to a nav menu when I’m viewing a child page?
- Custom ul class
- wp_nav_menu inside an object — how do I deal with fallback_cb?
- Splitting up a submenu into columns, or putting existing menus in another menu as submenu item
- wp_nav_menu does not take arguments?
- Walker_Nav_Menu creating too many closing tags?
- Can’t insert internal links and menu errors appearing
- horizontal menu / 4-level depth
- Theme Menu vs Native Menu
- Mobile navigation javascript problem
- Custom menu including also primary menu items
- open menu link (PDF) in new tab not download
- twentysixteen child theme – responsive menu – ham icon button not working – Cannot read property ‘classList’ of null
- How to add Loginout to Sub-menu
- having a page in multi sub-menu and match current-menu-item
- PHP Warning adding menu
- Customize version different to Live version
- Sub-Items Not Visible in Navigation
- Custom menu with Walker class – what should the $db_fields be?
- Editing/Removing Secondary Menu from Divi
- Menu Button that link to different pages for unique user?
- Change “login/register” to “useraccount” when a user has logged in
- Question regarding register_nav_menus();
- Making wordpress menu horizontal [closed]
- nav_menu: how to force a subpage switching on the parent menu
- wp_dropdown_nav function to list menu items
- Hardcoding links to wp_nav_menu
- wp_nav_menu() reutrns HTTPS?
- Creating and populating custom nav menu (menu-item-position not working)
- Hide page link in main menu from anonymous users
- load wp_menu dynamically with enquire.js
- How to make a page to not appear in the menu when created?
- WP NAV MENU – Dropdown always showing
- Can’t style custom menu
- custom walker to add iconfont to wp_nav_menu
- wordpress 3.4.2 + wp_nav_menu + chunk theme not working [closed]
- Display Username as parent menu item
- My html data comes after the nav menu renders?
- How to modify menu text in callback function of ‘walker_nav_menu_start_el’ hook
- How to let the role “editor” to control the menu?
- Adding ‘Original’ URL for Custom links
- Menu in widget with yahoo style
- The menu item is not deleted on WordPress
- The menu jumps a few pixels after the website loads
- Navigation menu displays permalinks