wp_nav_menu() – no current-menu-item on subpages
-
I have custom post type “thought”. I created menu with Thoughts item pointing to archive (https://site/thought). When I’m on archive the wp_nav_menu() knows (adds current-menu-item class) where I am. When I go to https://site/thought/somepost (so I’m on single-thought.php) it doesn’t add current-menu-item class to li item (Thoughts menu item) in navigation.
Shouldn’t wp_nav_menu mark all subpages too ?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wp_nav_menu() – no current-menu-item on subpages’ is closed to new replies.