As far as I remember WordPress doesn’t operate with concept of anchors in its navigation menus. All of your anchors are on the same page, which is all WP cares about.
Since logically you would also want highlight to work when moving within the page without reload, your options here are likely limited to stripping native active classes from the source and implementing it client–side with JavaScript.
Related Posts:
- Add Javascript to WordPress Menu
- How to move parent li to end of child ul
- How do i style the current menu anchor link’s parent anchor link? [closed]
- How to insert custom code into wp_nav_menu structure?
- I am facing a problem with the navigation menu of my website
- Grey out nav buttons unless is_user_logged_in()
- How Do I Add Images To Main Navigation Menu
- display menu as table layout
- Menu Arrow for Child Element
- How to buid wordpress menu with auto width sub-menu items in dropdown menu without any items sharing one line [closed]
- How to add css to single navigation text? [closed]
- Twenty Fifteen: Change navigation menu behavior
- Odd spacing in Navigation Bar [closed]
- Change hover to onclick on menu
- wp_nav_menu container style args
- Add/remove image from navigation bar
- How to create a mobile menu full screen overlay using Understraps Bootstrap 4 theme
- Additional CSS for the nav menu
- Disable Top Nav Bar on Mobile
- How can I make menu items into two seperate buttons with different functions?
- Menu Details Output in Javascript [closed]
- Active page link not getting class assigned
- How do i keep my current page menu highlighted on pagination?
- individual images as navigation design TwentyTen
- How to add or remove borders in navigation menu?
- Site navigation sits unstyled for a second on page reload [closed]
- Changing when mobile menu is displayed
- How can I only show one responsive menu on mobile devices?
- Active Navigation Class Based on URL on icon
- Override theme hamburger menu to work without javascript (noscript)
- automatically append menu parent as first item in submenu with nav_walker
- Navigation doesn’t render when wp is hosted
- CSS_Menu_Walker not showing on mobile view?
- wp_nav_menu() doesn’t work
- How do you add a around the second level of a Menu?
- wp_page_menu not working right?
- Remove nav menu item by script
- CSS Classes (optional) on menu is not showing
- How can I add text to a single nav menu item?
- Alternative to wp_get_nav_menu_items?
- Using Zurb’s Foundation Tabs as WordPress Nav (Active Tab)
- Help with walker for nav
- Using my WordPress menu on another platform
- Links do not open from click, only in new tab [closed]
- Make a navigation menu in the same post [duplicate]
- Switch from hover to click on Twenty Twelve Menu
- Does is_child() exist in wp 3.5.1?
- Redirect to another page using contact form 7? [closed]
- Using _s theme, menu changes do not affect header menu
- How to style a specific nav menu item?
- How to get rid of the home link in nav menu?
- Get menus created with menu editor?
- How to remove dropdown from wp_nav_menu
- Add span in top menu item with nested itens
- Add a submenu to wp_nav_menu
- Excluding a media query from specific pages
- Is it possible to add a dynamic link in the main navigation in a child theme
- How to I know the class or ID of my theme?
- My Temptation theme is showing two of the same menu at the top. How do I remove the one that the theme comes with? Please help! [closed]
- How to change the color of a menu item [closed]
- Walker menu not displaying at all
- How to create a menu with pages and post categories?
- remove specific classes from menu items
- Highlight parent if item from submenu is active
- Hide menu from homepage
- Missunderstanding of WordPress menus
- How to add schema.org SiteNavigationElement and property URL to navbar?
- WordPress + Bootstrap [closed]
- styling wp_nav_menu – horizontal, sub-menu drop downs
- Show children (sub-navigation) of active menu item only
- remove menu items if user can’t read
- Theme Location empty
- Adding an external link to wordpress menu
- How to make wordpress nav menu use post custom meta data
- how to remove description from menu buttons?
- Adding a unique ID to each sub-menu
- Add a counter beside menu item label
- Trouble hiding menu on single page
- change hover color of specific menu link [closed]
- Adding toggle-able element after menu item
- set certain item in nav walker to active when on archive pages or singles
- Navigation menu not visible (contrast issue) on home page
- wp_nav_menu() | Outputting my own custom code using built in features
- add another html tag after li element in wp_nav_menu
- Remove a class from a using Walker
- Menu Custom Data Attributes
- My navigation menu isn’t working. What happened? Please help!
- The cart, checkout, and shop links not getting removed
- Full screen nav menu block with avada theme
- How to automatically redirect to first item of second navigation level in a multi-level menu?
- Default Nav Highlight
- How do I change/remove styling (top border) on main menu for active page and hovering (Avada Theme)
- Make two bootstrap menus collapse into one dropdown
- Hide pages from the main menu
- Locking in navigation labels before changing title?
- Add custom link on the fly to nav menu
- Switch an entire nav menu if user is logged in
- wp_bootstrap_navwalker Fatal Error
- How to modify mobile nav menu text in theme
- Custom register_taxonomy ins’t showing custom Nav menu