0

I'm trying to make some nav menu items non-clickable if they have sub categories. I figured out how to do it for parent items but I'm have trouble with child items -making them non-clickable if they branch to lesser categories.

`enter code here`#nav-wrap .wsite-nav-0 a, .wsite-nav-1 a {pointer-events: none;};
Horaciux
  • 6,322
  • 2
  • 22
  • 41

1 Answers1

0

Is sounds like what you are looking for is a parent selector, such a selector does not currently exist.

Some options:

  • Set a class for those you dont want to be clickable. Simple and to the point.
  • Use the href attibute as part of the selector, and set href="#".

    <a href="#">Instructors [Other stuff here]</a>
    
    /*CSS*/
    #navigaion a[href="#"] {pointer-events: none;}
    
  • Finally re-think. I always try to have a page for everything in my menus. Have a general instructors page with a paragraph or two about the group, then links to the indidvidual instructots.

Community
  • 1
  • 1
Jon P
  • 19,442
  • 8
  • 49
  • 72