By josys64 on
Hi,
after readings many posts on this subject, i didn't find any solution for my problem. I try to theme a menu with 2 levels.
Below the menu i would like :
<ul id="menu">
<li><a href="/ldesign.fr/" title="">company</a>
<ul><li><a href="/ldesign.fr/content/domain" title="" class="active">our story</a></li>
<li><a href="/ldesign.fr/" title="">Arik and Pippo</a></li>
<li><a href="/ldesign.fr/" title="">texts about us</a></li>
<li><a href="/ldesign.fr/" title="">credits</a></li>
</ul>
</li>
<li><a href="/ldesign.fr/" title="">our clients</a></li>
<li><a href="/ldesign.fr/" title="">contact</a></li>
<li><a href="/ldesign.fr/" title="">news</a></li>
</ul>
i'm using this functions :
function phptemplate_menu_tree($tree) {
return '<ul id="menu">'. $tree .'</ul>';
}
The problem is i get twice the id "menu" in the ul tag .
thanks for your answers
Comments
Use class instead of id?
CSS:
Would work for me.
CK Ng | myFineJob.com
consultation • web design & development • content development • site domain, hosting & maintenance • software design & development
No i can't
Actually i can't use this solution because i use a javascript snipet.
You can just change the
You can just change the javascript as well.
If jquery, change $(ul#menu) to $(ul.menu)
--
CK Ng | myFineJob.com