Hello,

in the page.tpl i use the following code:

print preg_replace('/\<\/li\>(\s\S*?)\<li(.*?)\>/', ' | ', theme('links', $primary_links, array('class' =>'links', 'id' => 'navlist')))

same for secondary

That works fine for primary and secondary links: http://www.alex-tra.com

How can I style other menus with delimiter, which are switched on over blocks. In this e.g. the topbar
on the top right:


<div class="content">
<ul class="menu">
<li class="leaf"><a href="/node/11" title="AGB">AGB</a></li>
<li class="leaf"><a href="/faq" title="FAQ">FAQ</a></li>
<li class="leaf"><a href="/Kontakt" title="Kontakt">Kontakt</a></li>
<li class="leaf"><a href="/impressum" title="Impressum">Impressum</a></li>
</ul>

Thanks for helping.

Alexander

Comments

naveenpl’s picture

code like this should work

<h1 class="title"><?php print $title 

?> in page.tpl.php
Most probably your class will be over ride by other class.
So if you are using firefox, then install firebug and webdeveloper( addons).
To check that try to give some css to ul and li tags in style.Ie

<li style="background-color:#FF0000;width:100px;height:100px;"><a href="/node/11" title="AGB">AGB</a></li>.
//To see changes more clearly.

I think this should work.

Hope this will help.
Cheers.