Hello,
I have the following quick css to add a red bottom border to the current menu item:
.current-menu-item span.avia-menu-text {
border-bottom-width: 5px;
border-bottom-style: solid;
border-bottom-color: #be1622;
}
However this is having the result that sub items of the active item are also being styled in this way, which I don’t want. The main item is an ID on my homepage and the sub items are separate pages.
Could you suggest the correction needed to the above?
Thanks in advance
David
Hey davidsg7,
Please try this instead:
.current-menu-item > span.avia-menu-text {
border-bottom-width: 5px;
border-bottom-style: solid;
border-bottom-color: #be1622;
}
Best regards,
Rikard
Hi Rikard,
Thanks for the response. I’m afraid the change you suggested above removes the border styling completely from the menu – do you have any further suggestions?
Many Thanks
David
Hi David,
Here is the code you can put in Enfold > General Styling > Quick Css, if it does not work, put into themes/enfold/css/custom.css
.current-menu-item span.avia-menu-text {
border-bottom-width: 5px;
border-bottom-style: solid;
border-bottom-color: #be1622;
}
.current-menu-item .sub-menu span.avia-menu-text {
border: none;
}
If you need further assistance please let us know.
Best regards,
Victoria