Support » Theme: Twenty Eleven » Multiple menu items get highlighted

  • BadBishop

    (@badbishop)


    I originally posted this in the Fixing WordPress forum, and it was suggested that I ask the question in the relevant theme forum:

    In the link I have given, when the blog page is displayed you can see that the “Blog” item in the top menu is highlighted (as you would expect), but also the “Club News” item is highlighted (which I wouldn’t expect).

    The reason for this behaviour is that “Club News” has a lower level menu item that points to the blog page – it is the “Current News (blog page)” menu item that you can see if you hover over “Club News”.
    When I temporarily remove that menu item for testing purposes, only “Blog” is highlighted so I am confident that is the cause.

    This is obviously a quite minor issue, but my questions are:

    – is it possible to stop this happening? I have had some limited success by adding empty query strings to the submenu item – in an attempt to change the shared url – but it’s not very pretty and doesn’t work 100% ;

    – is this expected behaviour, or a potential bug? I don’t see why it should highlight a parent item of a lower level item that has the same link of another page, but maybe there is a reason for it.

    I am using Twenty Eleven theme (actually a child theme with some very trivial mods).

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • BadBishop

    (@badbishop)

    User joy in the other forum indicated the reason for the behaviour, I guess my question in this forum is how easy it would be to change it?

    Fixable yes, with some CSS such as the following

    .blog .menu .menu-item-755 a {
        font-weight: normal !important;
    }
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.