By data18 on
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
code like this should
code like this should work
?> 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
I think this should work.
Hope this will help.
Cheers.