- πΊπ¦Ukraine AstonVictor
I'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks
I want to wrap my menu link titles in span tags. So I implement the theme_menu_link function in my template.php. However, that doesn't have any effect on menus displayed using Nice Menus. So I need to add a second function. I have to implement the special theme_nice_menus_menu_item_link function just to get the same functionality for my Nice Menus.
My template.php for my test theme ends up looking like this:
function test_menu_link($vars) {
$vars['element']['#title'] = '<span>' . $vars['element']['#title'] . '</span>';
$vars['element']['#localized_options']['html'] = TRUE;
return theme_menu_link($vars);
}
function test_nice_menus_menu_item_link($vars) {
$vars['element']['#title'] = '<span>' . $vars['element']['#title'] . '</span>';
$vars['element']['#localized_options']['html'] = TRUE;
return theme_nice_menus_menu_item_link($vars);
}
Nice Menus should instead work with the standard theme_menu_link function.
Closed: outdated
2.1
Theme Compat
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
I'm closing it because the issue was created a long time ago without any further steps.
if you still need it then raise a new one.
thanks