Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,
    I see that for now you solved the problem by forwarding to the first link under Tjanster. ??

    When I’ve seen this type of issue before, it has been because a Custom Post Type has been added to a menu. Those will not show up as “current” items in the menu code. If this is true in your case, here’s some info about how to add that:

    https://oikos.org.uk/2011/12/tech-notes-highlighting-current-menu-items-for-post-type-archives/

    By the way, this is a WordPress problem that has nothing to do with Genesis per se.

    Cheers, Dave

    Plugin Author Bill Erickson

    (@billerickson)

    Sorry for missing this.

    This is actually completely doable, you just need to change your stylesheet. WordPress applies a class of “current-menu-ancestor” to the parent page when on subpages. So open up your stylesheet, find the style responsible for the “active state” in the menu, and add that as a class.

    Example:

    #nav li a:hover,
    #nav li.current-menu-item a,
    #nav li.current-menu-ancestor a {
    background: #ff0000;
    }
    Thread Starter glazyr

    (@glazyr)

    The link above is not correct. Now this is the correct one: https://sumaconsulting.se/tjanster/hr-och-organisation

    To solve the problem I had to put HR och Organisation, F?rs?ljning and Chefskap as children to HR och Organisation. Rename the menuitem in the custom menu and set display: none; for the pages. In combination with “Genesis subpages as secondary menu” I couldn’t see any other solution.

    It seems that when you use “Genesis subpages as secondary menu” the pages HR och Organisation, F?rs?ljning and Chefskap does not become ancestors and the suggestion from Bill don’t work. At least when I tried a month ago ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Genesis Subpages as Secondary Menu] Highlight parent using submenu’ is closed to new replies.