Hi
I d like just to add some simple html between and before each menu items but my knowledge i slimited to some basic overriding where I can add a xxx.tpl.php to my theme and copy/modify some already existant file.
I need to do something like this:

----------------
--menu item 1
----------------
--mentu item 2
----------------
--menu item3
----------------

any hint?
thanks

Simone

Comments

cimo’s picture

Status: Active » Fixed

ok now i see it is the same as per normal menu items

function mytheme_menu_item($link, $has_children, $menu = '', $in_active_trail = FALSE, $extra_class = NULL) {
  $class = ($menu ? 'expanded' : ($has_children ? 'collapsed' : 'leaf'));
  if (!empty($extra_class)) {
    $class .= ' '. $extra_class;
  }
  if ($in_active_trail) {
    $class .= ' active-trail';
  }
  return '<li class="'. $class .'">'. '<span class="pink">---- </span>' . $link . $menu ."</li>\n";
}

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.