Support » Plugin: Timely All-in-One Events Calendar » Incorrect navigation menu item highlighted when viewing event detail

Viewing 1 replies (of 1 total)
  • I’m running into the exact same issue.

    The underlying problem seems to some code in wp-includes/nav-menu-template.php. If the current page is not a “page” (for example, calendar events, store categories), then it falls back to highlighting the homepage. Line 401:

    // back-compat with wp_page_menu: add "current_page_parent" to static home page link for any non-page query
    if ( ! empty( $home_page_id ) && 'post_type' == $menu_item->type && empty( $wp_query->is_page ) && $home_page_id == $menu_item->object_id )
    $classes[] = 'current_page_parent';

    I haven’t figured out how to fix this, though.

Viewing 1 replies (of 1 total)
  • The topic ‘Incorrect navigation menu item highlighted when viewing event detail’ is closed to new replies.