Hello! I have a problem, i have a custom link in my menu and I add a underline effect for the current page but the effect its not working with the custom link because the section is the same as a page option menu so both appear underline. Could you help me?
My effect underline code is
/*Underline menu effect*/
@media (min-width: 769px) {
.main-navigation .menu a:after {
content: "";
position: absolute;
right: 0;
left: 50%;
bottom: 10px;
-webkit-transform: translateX(-50%);
transform: translateX(-50%);
display: block;
width: 0;
height: 3px;
background-color:
#9DCB3B;
transition: 0.3s width ease;
}
.main-navigation .menu .current-menu-item a:after,
.main-navigation .menu .current-menu-item a::after,
.main-navigation .menu .current-menu-item a:hover::after {
width: 50%;
}
.main-navigation .menu a:hover::after {
width: 50%;
}
}