How to include svg sprite icons into submenu as a decoration? Below I showed my menu that svg needs different [on hold]

function _t_dropdown_icon($title, $item, $args, $depth) { if($args->theme_location == ‘main-menu’) { if(in_array(‘menu-item-has-children’, $item->classes)){ if($depth == 0) { $title .= _t_submenu_button(‘down’, $title);…

How to include svg sprite icons into submenu as a decoration? My below code is printing same svg on all submenu title

function _t_dropdown_icon($title, $item, $args, $depth) { if($args->theme_location == ‘main-menu’) { if(in_array(‘menu-item-has-children’, $item->classes)){ if($depth == 0) { $title .= _t_submenu_button(‘down’, $title);…