Support » Theme: GeneratePress » CM Tooltips Glossary term page activates wrong menu button

  • Resolved syzygist

    (@syzygist)


    I just installed the CM Tooltip Glossary plugin, which uses a page named Glossary as an index page, with links to a separate page for each term (or so it appears, but I think they are actually leveraging the post process in a full page view).

    I noticed that Glossary appeared as the active menu item when I am on the index page, but once I click on a term to view its separate “page,” the Blog page becomes the active item on the menu.

    I assumed this had something to do with use of the post interface to create pages for the glossary terms, and sent the plugin author a feature request that this be changed so the Glossary page displays as active. They replied that it was a theme issue. I was skeptical, but I tested it with the 2013 and 2015 themes, and they were right – in those themes, NO menu item is active when a term page is viewed, which actually makes more sense.

    Here’s the Glossary index page:

    http://wp-tutor.me/glossary

Viewing 1 replies (of 1 total)
  • Theme Author Tom

    (@edge22)

    Hi there,

    This is a tough one, because it actually is the plugin that is telling WordPress it’s associated with the blog.

    GeneratePress uses these three selectors:

    .main-navigation .main-nav ul .current-menu-item > a,
    .main-navigation .main-nav ul .current-menu-parent > a,
    .main-navigation .main-nav ul .current-menu-ancestor > a

    TwentyFifteen only uses:

    .main-navigation .current-menu-item > a,
    .main-navigation .current-menu-ancestor > a

    So they decided to not using current-menu-parent.

    I’m hesitant to remove it, as that would removed the highlighting from parent menu items in the navigation, and may upset some people.

    I’ll look deeper into why the WP team decided against including this class in their CSS – there might be a reason I’m missing.

Viewing 1 replies (of 1 total)
  • The topic ‘CM Tooltips Glossary term page activates wrong menu button’ is closed to new replies.