By Wilcox on
Hello!
I am new to drupal and I have started hacking away at the templates. I have to say I wish I had dedicated more time to drupal a couple of years ago.
Anyways, I was wanting to know how I remove the "|" in the menu? I know that I probably have to create a template.php file and so something there. I am using 4.7 version of drupal. Any help would greatly be appreciated.
Thanks,
Brett
Comments
Try this
Hiya Brett,
Not the best solution, but you can try changing line 495 of theme.inc to:
function theme_links($links, $delimiter = ' ') {The problem with this quick hack (besides being a hack) is that it's site-wide. It would be way better to be able to make changes to
<?php print theme('links',$primary_links) ?>in page.tpl.php, but I have no idea if that's even possible.ap
*update*: better ways can be found here:
http://drupal.org/node/44704
http://drupal.org/node/44708
Or try this:
<?php print str_replace(" | ", "", theme('links',$primary_links)); ?>--
'What's a Texas?'
re
If it is for primary links and you want to replace the | with say // you would put the following in your page.tpl.php:
print theme('links', $primary_links, " // ");
Use whatever (including possibly nothing) in the third parameter to specify your delimiter.
It worked great!!!
Thanks! Thanks! Thanks!
I worked great. I can now spice it us with a bit of css. Thanks so much for your help.
Brett