\n"; } function end_el( &$output, $item, $depth = 0, $args = array() ) { if($depth == 0) $output .= "\n
  • \n"; else $output .= "\n"; } function display_element($element, &$children_elements, $max_depth, $depth=0, $args, &$output) { $id_field = $this->db_fields['id']; if (!empty($children_elements[$element->$id_field])) { $element->classes[] = 'has-dropdown'; //enter any classname you like here! } Walker_Nav_Menu::display_element($element, $children_elements, $max_depth, $depth, $args, $output); } }