Modifying HTML of menus In my Drupal 7 template, this one line of code spits out all my menues:

&lt;?php print render($page['header']); ?&gt;


I want to remove extraneous wrapper tags from my menus; for example, Drupal 7 prints out one of my menus as:

&lt;div id="block-menu-menu-top-menu" class="block block-menu"&gt;
    &lt;h2&gt;Top menu&lt;/h2&gt;
    &lt;div class="content"&gt;
        &lt;ul class="menu"&gt;
            &lt;li class="first leaf"&gt;&lt;a href="/home" title=""&gt;Membership&lt;/a&gt;&lt;/li&gt;
            &lt;li class="leaf"&gt;&lt;a href="/home" title=""&gt;Calendar&lt;/a&gt;&lt;/li&gt;
            &lt;li class="leaf"&gt;&lt;a href="/home" title=""&gt;Newsletter&lt;/a&gt;&lt;/li&gt;
            &lt;li class="last leaf"&gt;&lt;a href="/home" title=""&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
&lt;/div&gt;


I want to simplify it to something like:

&lt;ul class="menu"&gt;
        &lt;li class="first leaf"&gt;&lt;a href="/home" title=""&gt;Membership&lt;/a&gt;&lt;/li&gt;
        &lt;li class="leaf"&gt;&lt;a href="/home" title=""&gt;Calendar&lt;/a&gt;&lt;/li&gt;
        &lt;li class="leaf"&gt;&lt;a href="/home" title=""&gt;Newsletter&lt;/a&gt;&lt;/li&gt;
        &lt;li class="last leaf"&gt;&lt;a href="/home" title=""&gt;Contact Us&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


How do I remove unnecessary wrapper tags?
I'm not sure if there are template hints that work exactly with this, but you can place block.tpl.php and region.tpl.php (in modules/block/ and modules/system/ respectively) in the theme directory, and then use conditions to sort through which areas you want to be marked up the default way and regions you don't want to be marked up that much.