• Resolved benaps

    (@benaps)


    Hi,

    I’m currently using this code to highlight the current menu item.

    .current_page_item a, .current_page_item a:hover  {
    font-weight: bold;
    }

    My problem is that I also have sub-menus and with this code, when a parent menu is the current menu item, its corresponding submenus also get highlighted. How do I alter this so that only the parent is highlighted when I view the parent page.

Viewing 1 replies (of 1 total)
  • Thread Starter benaps

    (@benaps)

    Fixed. Figured it out by adding this CSS line

    .menu .page_item ul li a, .menu .page_item ul li a:visited
    { font-weight:normal; }

Viewing 1 replies (of 1 total)

The topic ‘wp_nav_menu: Highlighting parent menu only’ is closed to new replies.