We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 32017
    • 151 Posts
    I have set the first class and its being applied to all the 1st items in all my submenus as well

    is there a way to stop this?
      London web design - MODx specialists
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You can be very specific in your css as to how you want the various levels styled.
      #menu ul .first {color: red;} /* top-level first item will be red */
      #menu ul ul .first {color: green;} /* all submenu first items will be green */
      



        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 32017
        • 151 Posts
        I have a very complex style assigned to my first class.

        Ill give it a go with css anyway, thanks
          London web design - MODx specialists
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          Just make sure to give the ul ul .first the simple styling after you specify the complex .first styling; then your .first styling will only be applied to the top-level .first item.

          If you aren’t applying any of the dynamic classes to the inner row items, you can use custom chunk tpls for these innerRowTpl items, and omit the [+wf.classes+]. Then the inner rows won’t have the .first class.
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org