[Support request] first level current-menu only

Home Forums Support [Support request] first level current-menu only

Home Forums Support first level current-menu only

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #897959
    sg

    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

    #897963
    Leo
    Staff
    Customer Support

    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 🙂

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.