Add a class at specific element in custom Menu Walker
Count the level 0 elements in a static variable in the method and add an extra class if you hit the third. Sample code, not tested: function start_lvl(&$output, $depth) { static $column = 1; $indent = str_repeat(“\t”, $depth); if ($depth > 0) { $output .= “\n$indent<ul class=”subsubmenu”>\n”; } else { $column += 1; $extra = … Read more