autonav problems

Permalink
Hi i am using jordan levs new autonav template. There is a section that allows me to add a class to the first top-level and first item in each dropdown sub-menu. What i really need is to only apply a class to the top-level elements and not to the first element in the sub-menu. How can this be done ?

if ($ni->isFirst) {
      //class for the first item in each menu section (first top-level item, and first item of each dropdown sub-menu)
      $classes[] = 'nav-first';
   }

 
jero replied on at Permalink Reply
jero
Perhaps something like this:

/******************************************************************************
* DESIGNERS: CUSTOMIZE THE CSS CLASSES STARTING HERE...
*/
foreach ($navItems as $ni) {
   $classes = array();
   if ($ni->level==1) {
      $classes[] = 'top-level-parent';
   }
.....
plagil replied on at Permalink Reply
Thx allot that did the trick :)