Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#18643 closed defect (bug) (fixed)

Twenty Eleven incorrectly only uses .current_page_item for nav menu styling

Reported by: Viper007Bond Owned by: nacin
Priority: normal Milestone: 3.3
Component: Bundled Theme Version: 3.3
Severity: normal Keywords: has-patch
Cc: Focuses:

Description

Twenty Eleven only highlights pages in its nav menu due to using CSS classes targeted at wp_page_menu() output. It works with custom nav menus because that functionality outputs backwards compatibility classes.

It should also highlight .current-menu-item and .current-menu-ancestor.

To reproduce, add some categories to your nav menu and then click on one of them. They won't be bolded as they should be.

Attachments (1)

18643.patch​ (474 bytes ) - added by Viper007Bond 15 years ago.

Download all attachments as: .zip

Change History (4)

@Viper007Bond
15 years ago

#1 @SergeyBiryukov
15 years ago

  • Component Themes → Bundled Theme
  • Milestone Awaiting Review → 3.3

#2 @nacin
15 years ago

Running on WP.com, good enough for me.

#3 @nacin
15 years ago

  • Owner set to nacin
  • Resolution → fixed
  • Status new → closed

In [19301]:

Highlight current-menu-item and current-menu-ancestor in Twenty Eleven. props Viper007Bond, fixes #18643.

Note: See TracTickets for help on using tickets.