Archived topic
first level current-menu only
1 reply · Started by sg on May 13, 2019
Viewing posts 1–2 of 2
Hi, how do i target the first level/main level ONLY current menu classes .
i tried :
.main-navigation .main-nav ul li[class*="current-menu-"] > a but its affecting the sub menu as well.
Thanks
Hi there,
Try this:
.main-navigation .main-nav > ul > li[class*="current-menu-"] > a
More info here: https://www.w3schools.com/cssref/sel_element_gt.asp
Let me know if this helps :)
This archived topic is closed to new replies.