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, 5 months ago.

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



    At this site 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?


    Matt Keys

    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)

You must be logged in to reply to this topic.