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

ckng’s picture

function phptemplate_menu_tree($tree) {
  return '<ul class="menu">'. $tree .'</ul>';
}

CSS:

ul.menu {  // first level
}
ul.menu ul.menu {  // second level
}
ul.menu ul.menu ul.menu {  // 3rd level
}

Would work for me.

CK Ng | myFineJob.com
consultation • web design & development • content development • site domain, hosting & maintenance • software design & development

josys64’s picture

Actually i can't use this solution because i use a javascript snipet.

ckng’s picture

You can just change the javascript as well.
If jquery, change $(ul#menu) to $(ul.menu)

--
CK Ng | myFineJob.com