This message refers – https://kriesi.at/support/topic/decorations-for-menu-item
You kindly gave me CSS code to get an underline on the menu item for the active page on the menu.
However, when you go into a submenu item on a dropdown menu item, all the submenu items have an underline and not just the active one.
Could you make a slight tweak to the code you provided please – the code you gave me was:
nav.main_menu .current-menu-item .avia-menu-text {
border-bottom: 2px solid;
padding-bottom: 5px;
}
Thank you.
Hey stevewroche,
Please try this CSS instead:
nav.main_menu .current-menu-item .avia-menu-text {
border-bottom: 2px solid;
padding-bottom: 5px;
}
nav.main_menu .sub-menu .current-menu-item .avia-menu-text {
border-bottom: none;
}
Best regards,
Rikard
Thank you for that. However, that code doesn’t put an underline on the active page on the submenu – it puts an underline on the non-active pages on the submenu. Can you tweak it so that the active page on the submenu has an underline but the non-active pages on the submenu do not. Thank you.
Hi,
Please try this CSS instead:
nav.main_menu .current-menu-item > .avia-menu-text, nav.main_menu .sub-menu .current-menu-item .avia-menu-text {
border-bottom: 2px solid;
padding-bottom: 5px;
}
Best regards,
Rikard
Thank you, that puts the underline on the active submenu page but not on the other pages when they are active.
Hi stevewroche,
I tweaked Rikard’s code a bit, please try to use this one:
nav.main_menu .current-menu-item > a > .avia-menu-text,
nav.main_menu .sub-menu .current-menu-item .avia-menu-text {
border-bottom: 2px solid;
padding-bottom: 5px;
}
Best regards,
Nikko
That’s brilliant – it works; thank you so much.
Hi stevewroche,
I’m glad that we could help you :)
Thanks for using Enfold and have a great day!
Best regards,
Nikko