CSS style for pages which have subpages
Permalink
Is it possible to modify the AutoNav template that it would add a class for all pages which have subpages?
I found the code which adds a class for pages for the dropdown menu, but that works only for the active page:
Can this be done for all pages which have subpages?
I found the code which adds a class for pages for the dropdown menu, but that works only for the active page:
if ($ni->hasSubmenu) { //class for items that have dropdown sub-menus $classes[] = 'nav-dropdown'; }
Can this be done for all pages which have subpages?