Hello,
I was using this code to add a highlight border around my active menu item.
/*CHANGE ACTIVE MENU – BORDER – MARGIN – PADDING – BACKGROUND-COLOR – BORDER-RADUIS */
#header .av-main-nav .current-menu-item > a > .avia-menu-text
{border:2px solid rgba(55, 55, 55 ,1) !important;margin-left:5px !important;padding:12px !important;background-color: rgba(255, 188, 8, 0.75) !important;border-radius: 8px !important;}
However it applies it to the submenu items as well. Is there a way to have it only applied to the main menu?
Thanks,
Hey mikeens,
Please try this css, I added “first-child” so the sub-menu items won’t be effected:
/*CHANGE ACTIVE MENU – BORDER – MARGIN – PADDING – BACKGROUND-COLOR – BORDER-RADUIS */
#header .av-main-nav .current-menu-item > a:first-child > .avia-menu-text
{border:2px solid rgba(55, 55, 55 ,1) !important;margin-left:5px !important;padding:12px !important;background-color: rgba(255, 188, 8, 0.75) !important;border-radius: 8px !important;}
Please clear your browser cache and check.
Best regards,
Mike