Add a new CSS class to custom menus

#2644