Home Forums WP Nav Plus Installation and Configuration Style ACTIVE PARENT

This topic contains 1 reply, has 2 voices, and was last updated by  Matt Keys 2 years ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7162 Reply

    Marie

    Hi

    At this site http://91.189.44.127/~smalandair/ny/hitta-din-resa/vara-destinationer/ I have styled the active item: “VĂ¥ra destinationer” with a border bottom:

    #menu-huvudmeny li[data-menu-active] {
    border-bottom: 1px solid #1d1d1c;
    }

    BUT when I click on the submeny to the left (eg the sub menu item “Boka resa”), I still want the active parent item to have a border. Is this possible?

    #7164 Reply

    Matt Keys
    Keymaster

    It looks like you might be using a custom menu walker because I do not see the normal WordPress menu classes that I usually see on WP Nav menu’s.

    Using the normal classes you can usually find and target a class like current-menu-item-ancestor or current-menu-item-parent.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Style ACTIVE PARENT
Your information: