I checked both of your links and in the <body>
tag, both of them have class page-id-1508
, meaning that the page id is recognised correctly either with or without the query variable.
However, as @mmm suggested in the comment above, it seems that you added the menu item as Custom Link (note the menu item classes menu-item-type-custom menu-item-object-custom
; if you added it as a Page, it would has classes menu-item-type-post_type menu-item-object-page
).
Since it is a Custom Link, when the link changes (in this case, it has query variable added), WordPress doesn’t recognise it as the same link anymore, and thus it looses the active class.
So because that is a page, I suggest you add that menu item as a page and check again.
Related Posts:
- Programmatically add a Navigation menu and menu items
- Dynamically exclude menu items from wp_nav_menu
- Split up wp_nav_menu with custom walker
- Is there an easy way to replace a custom menu link with a page or post?
- How to select particular menu position in wordpress?
- Header lists posts instead of showing primary nav menu
- Show navigation header menu by post and categery
- Links in new menu don’t work
- Conditional Nav Menu Inside Nav Menu Across Multisite Sites
- Is it possible to seperate wordpress menu by different div?
- How to add odd and even classes to all nav links through walker?
- Output sort number in wp menu list item?
- Add newsletter signup element to navigation bar
- How to Use Default Auto-Generated Menu?
- wp-nav menu with custom walker , how to remove a tag if it has any submenu
- Programmatically add a Navigation menu and menu items
- Menu Details Output in Javascript [closed]
- Mark a page of a queried menu as active
- Site-wide tabs at WordPress website?
- Custom location for menu
- Creating custom Menu for custom theme
- Check in walker if current page is descendant
- How to add class and span to
- wp_nav_menu not selecting teh correct menu
- Show Child of Parent Page including all other parents
- Can’t add optional class to menu item when using Walker_Nav_Menu
- Active page link not getting class assigned
- Add dynamic content block to nav section generated by custom walker
- Highlighting Main Navigation Menu With Two or More Class Matches
- Next/previous a-like single navigation
- nav_menu: how to force a subpage switching on the parent menu
- wp_dropdown_nav function to list menu items
- Customize Walker_nav_menu to show posts if item is category
- wp_nav_menu() reutrns HTTPS?
- Menu not always using correct link
- How to output the menue structured for tabbed navigation?
- Replace Menu Item with Logged in username
- Where these arguments are defined?
- Show only second level menu items? [duplicate]
- Add item ONLY to the primairy navigation
- Update nav menu item position programmatically
- Navigational error
- Remove from wp_nav_menu() wordpress
- Determine if a navigation item has children
- Image menu on responsive WordPress
- Walker for menus
- wp_nav_menu: indicate by id page grandparents
- individual images as navigation design TwentyTen
- WordPress Navigation
- WordPress Navigation default output
- How to call either page name as the nav link or navigation title?
- Second tier sidebar navigation
- How to get wordpress navigation to work
- wordpress superfish dropdown menu
- Add custom ID to wp_nav_menu list items
- Show All Children of WordPress Menu
- Navigation list not correctly styled on pages with custom template (missing .current-menu-item)
- Unable to edit Navigation bar
- Display Username as parent menu item
- How do I show a different secondary navigation menu for each section of my website?
- Add a navigation menu item using MySQL
- how to make a walker to this (in bootstrap, i try but not work)
- How to add or remove borders in navigation menu?
- How to make an anchored page in a navigation menu tab
- How was this menu system created?
- Site pages show the page title under navigation bar
- Creating an accordion style menu
- Display sub menus as separate lists
- Site navigation sits unstyled for a second on page reload [closed]
- how can i get the page_ID in nav li [closed]
- How do i add logo in wordpress studiopress (glam theme)?
- Navigation menu, remove item from desktop
- Wrapping my ‘s with
- Custom navigation / menu output (walker?)
- How can I structure my pseudo footer nav code with wordpress codex code?
- Two Homes In Navigation Menu
- How to set menu Display location
- Add featured posts to nav menu
- WordPress “add to menu” button not working
- How to add a class directly on a unordered list element that is a primary navigation
- How do I programatically remove Menus?
- Navigation menu displays permalinks
- Displaying a Custom Avatar in WP Bootstrap Navwalker Menus in WordPress
- Is there a way to make it so that I don’t get a hamburger menu, but rather a desktop style nav, when resizing to a mobile size
- Give custom class names to WP nav sub-menu
- Tried to hide navigation menu on one page ended up SCRAMBLING the navigation menu on another
- Render link description in navigation block
- Nav walker bootstrap: Display 3rd level and 4th level in dropdown menu
- Header not showing in new pages
- Off-Canvas Menu Toggle Issue After WordPress Core Update
- wp_nav_menu parent in submenu
- Add a new menu selector element into WordPress nav-menus.php
- I only want to show links to categories that have posts in ‘publish’ state in my menu
- Can I create main menu without using built-in menu
- Remove WordPress Menu Classes and ID with Bootstrap Walker
- How to get and set post meta for core/navigation-link?
- How to add toggle-able DOM element after nav menu item?
- Is there any documentation on JS trigger for the Gutenberg “Navigation” block?
- How to get the navigation menu items? [closed]
- Change color of active link to navigation menu