Wolf wrote:If I am on contact page i want link to have active class. Hows that possible?
Hi Wolf: I assume you mean you want the link tag to contain your "active" class, and not the anchor tag as it is in Wolf by default.
Here is the standard navigation code, but with the conditional "active" (or "current") class moved to the <li>:
<div id="nav">
<ul>
<li<?php echo url_match('/') ? ' class="current"': ''; ?>><a href="<?php echo
URL_PUBLIC; ?>">Home</a></li>
<?php foreach($this->find('/')->children() as $menu): ?>
<li<?php echo in_array($menu->slug, explode('/', $this->url)) ? ' class="current"': null; ?>><?php echo $menu->link($menu->title); ?></li>
<?php endforeach; ?>
</ul>
</div> <!-- end #navigation -->
You will need to adjust that for your own situation -- but does that give you what you need to get going? Let us know how it goes!