WP 3.0b1 Menu highlighting for subpages and category single pages (3 posts)

  1. hanheg
    Posted 6 years ago #

    The new menu has a class current-menu-item to highlight the menu item when you are on the current page. But when I go to a subpage I cannot find an extra class like parent-menu-item or ancestor-menu-item to keep the parent menu item highlighted in the menu.

    Similarly, when I use a link to a category in the menu. I can highlight it with current-menu-item. But when the user clicks in the listing to go to a single post in that category, the menu-item is no longer highlighted as it has no current-menu-item class or other class to pick up.

    Is something like this still in the works? Or is there another way to do this with the great new menu system.

  2. Reagle Snake
    Posted 5 years ago #

    I have exactly the same problem. Is there a fix or workaround for this yet?

  3. Dalton Rooney
    Posted 5 years ago #

    Reagle Snake, this was fixed in 3.0 final about 6 months ago. Your version of WordPress should have post parent, post ancestor, menu parent, and menu ancestor classes for all menu items.


Topic Closed

This topic has been closed to new replies.

About this Topic