title: Magento 1.7: add active home button in menu
body: <p>Im trying to add a home button in the navigation of my magento store. A lot has been written and I found this code that does the job. </p>
  
  <pre><code>     &lt;li class="home &lt;?php echo !$_anyActive ? 'active' : '' ?&gt;"&gt;&lt;a href="&lt;?php echo $this-&gt;getUrl('')?&gt;"&gt;&lt;span&gt;&lt;?php echo $this-&gt;__('Home') ?&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
   
  
  <p>The only drawback is that it stays active while clicking on other categories. So it isn't behaving like the rest of the menu.</p>
  
  <p>Any help?</p>
  
  <p>Many thanks in advance!</p>
  
  <p>Update:
  Solved with the answer given below.</p>