title: Changing the HTML code for the Dynamic Sidebar in Wordpress
body: <p>I'm having a hard time trying to figure out the dynamic sidebar without hacking the php file.  I'm rebuilding an old web site and I need to use custom HTML code instead of the generate code that's given in wp-includes/nav-menu-template.php.  </p>
  
  <p>In a nutshell,  I need to go from:</p>
  
  <pre><code>&lt;div&gt;
    &lt;ul&gt;
      &lt;li&gt;&lt;a href="#"&gt;LINK NAME&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;LINK NAME&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;LINK NAME&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;LINK NAME&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>To this code:</p>
  
  <pre><code>&lt;div&gt;
      &lt;a href="#"&gt;LINK NAME&lt;/a&gt;
      &lt;a href="#"&gt;LINK NAME&lt;/a&gt;
      &lt;a href="#"&gt;LINK NAME&lt;/a&gt;
      &lt;a href="#"&gt;LINK NAME&lt;/a&gt;
  &lt;/div&gt;
  </code></pre>