Making menu wrapped in nav tag I've got problem with making main-menu wrapped in  element.
I've tried:


Using hooks in template.php like:

function koko_menu_link_main_menu($variables) { /* For block override */
$output = '&lt;nav&gt;';
      foreach ($variables['links'] as $link) {
        $output .= l($link['title'], $link['href'], $link);
  }
  $output .= '&lt;/nav&gt;';
  return $output;
}


function koko_links__system_main_menu($variables) {
  $output = '&lt;nav&gt;';
foreach ($variables['links'] as $link) {
  $output .= l($link['title'], $link['href'], $link);
}
  $output .= '&lt;/nav&gt;';
    return $output;
}


Using preprocesss/block.preprocess.inc:

  switch ($variables['block']-&gt;module) {
    case 'system':
      switch ($variables['block']-&gt;delta) {
        case 'help':
        case 'powered-by':
          break;

      case 'main':
          // Use a template with no wrapper for the page's main content.
          $variables['theme_hook_suggestions'][] = 'block__minimal';
          break;

      default:
          // Any other "system" block is a menu block and should use
          // block--nav.tpl.php
          $variables['theme_hook_suggestions'][] = 'block__nav';
          break;
      }
      break;

      case 'menu':
      case 'menu_block':
      // Use block--nav.tpl.php template.
      $variables['theme_hook_suggestions'][] = 'block__nav';
      break;
  }


case 'main':
  // Use a template with no wrapper for the page's main content.
  $variables['theme_hook_suggestions'][] = 'block__minimal';
  break;

default:
  // Any other "system" block is a menu block and should use
  // block--nav.tpl.php
  $variables['theme_hook_suggestions'][] = 'block__nav';
  break;
 }
 break;

case 'menu':
case 'menu_block':
    // Use block--nav.tpl.php template.
     $variables['theme_hook_suggestions'][] = 'block__nav';
     break;
   }



That contains. block--nav.tpl.php

    &lt;nav&lt;?php print $attributes; ?&gt;&gt;
      &lt;?php print render($title_prefix); ?&gt;
      &lt;?php print render($title_suffix); ?&gt;
      &lt;?php print $content; ?&gt;
    &lt;/nav&gt;


Still nothing happends. Main-menu is not wrapped in anything different than: &lt;div class="content"&gt;.
Did you read this and this posts? I thinks it's not so difficult to achieve this:

function MYTHEME_links__system_main_menu($variables) {
  $html = "&lt;div&gt;\n";
  $html .= "  &lt;nav&gt;\n";
  foreach ($variables['links'] as $link) {
    $html .= "&lt;li&gt;".l($link['title'], $link['path'], $link)."&lt;/li&gt;";
  }
  $html .= "  &lt;/nav&gt;\n";
  $html .= "&lt;/div&gt;\n";
  return $html;
}