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
- Split up wp_nav_menu with custom walker
- Filter wp_nav_menu()
- Show just one level of child pages, wp_list_pages woe
- Use navigation path from menu for permalink
- add span class inside wp_nav_menu link anchor tag
- How to set limit only on top levels of wp_nav_menu?
- Show only 2nd level of navigation depending on active navigation
- How to manually add an item to a submenu in a menu generated by wp_nav_menu?
- Using Image Links in WordPress Navigation Menus Instead Of Text Links
- Disguise Multi-Page site as Single Page
- Adding different classes to anchor in navigation menu
- Add Bootstrap dropdown class to a nav menu
- Search box as a menu item in the nav menu output by wp_nav_menu?
- How to change Twenty Seventeen theme’s navigation bar location?
- How can I put two menus in the same div?
- Second nav is merged with the first in mobile
- WordPress – site with 2 stylesheets and more…
- Add nav menu CSS class to body
- Using Shortcodes in WP-Menus in WP 3.1 (via nav_menu_objects)?
- Replace menu permalink/hyperlink with only menu name/slug
- Auto add pages to primary menu with functions.php
- how to remove the top navigation bar or header top on wordpress website?
- Add class active to static menu
- how can i add css class on current page in wordpress wp_nav_menu
- How to rewrite the output of wordpress nav menu?
- Is this format possible with a custom Nav Walker class?
- I want to hide the navigation menu on a particular page
- Add code to WordPress menu items by class
- How do you add a around the second level of a Menu?
- How to style a specific nav menu item?
- Add a submenu to wp_nav_menu
- 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]
- Hide menu from homepage
- remove menu items if user can’t read
- Hide pages from the main menu
- How to add columns to wordpress menu editor
- how to insert data in li tag of navigation
- Current author archive in navigation menu
- Output Post ID for all nav_items
- Custom ul class
- How to create menu spread over four lines including images
- Help with WordPress Custom Nav Walker
- Navigation item – current date in url
- Mobile navigation javascript problem
- Cannot collapse a responsive menu in WordPress
- How to add CSS class to and and id in a nav menu with code?
- Bootstrap Theme Migrated to WordPress
- WordPress Menu Navigation links not working
- Where to place a svg chevron down in my custom walker?
- How to apply individual menu item’s “CSS Classes” to , not ?
- Output existing wp_nav_menu with a custom walker
- how to split vertical menu into two columns using walker nav menu
- Sub-Items Not Visible in Navigation
- Adding span to a particular text in an menu item
- How can I create this menu with wp_nav_menu()?
- Get Sub-Menu Dropdown to Show Over Page Content
- Can’t add optional class to menu item when using Walker_Nav_Menu
- jQuery not working when used with wordpress menu
- Theme: Twenty Thirteen Mobile Sliding Menu Doesn’t Bump Content Down
- nav_menu: how to force a subpage switching on the parent menu
- wp_dropdown_nav function to list menu items
- wp_nav_menu() reutrns HTTPS?
- Update nav menu item position programmatically
- Navigational error
- Can’t style custom menu
- Determine if a navigation item has children
- WordPress Navigation default output
- Specifying Class style for Menu
- Display Username as parent menu item
- wp nav menu – highlighting current page not working properly [closed]
- Twenty-Twenty-Two Child Theme Mega Menu