Greetings all,
Let me start off by saying I am no programmer and it completely shows.
My eyes are bleeding, I've spent 4 days trying to figure out how to do this and would really appreciate some help.
I'm working on a theme for my site.
I have drupal 5.2 installed and I'm using Zen theme as the base for my theme.
I'm trying to customize $primary_links so that it will not only have active links, but also custom id's based on the link names/paths.
example of what i would like at the end:
<div id="navigation" class="menu withprimary ">
<div id="primary" class="clear-block">
<ul class="links-menu">
<li id="home"><a href="/" >Home</a></li>
<li id="about" class="active"><a href="/about">About</a></li>
<li id="blog"><a href="/blog">Blog</a></li>
<li id="portfolio"><a href="/portfolio">Portfolio</a></li>
</ul>
</div>
I've found this link which does exactly what i want, but for all menu blocks, i cant get it to work just for primary links:
http://www.nicklewis.org/node/843
the closet i've gotten is with this code in my template.php:
<?php
/**
* Implementation of theme_menu_links().
*
* Add active class to current primary-menu item links.
*/
function phptemplate_menu_links($links, $attributes = array()) {
if (!count($links)) {
return '';
}