Anyone know how to get rid or change the | character in the page titles?

Thanks

Idan

Comments

zeta ζ’s picture

file: themes/engines/phptemplate/phptemplate.engine
line: 206

emzi’s picture

but does not touch core files:
file: page.tpl.php

instead of traditional: <title><?php print $head_title ?></title>

put this:
<title><?php print str_replace("|","-",$head_title);?></title>

zeta ζ’s picture

Much better solution from emzi.

Maybe not as draconian as my post, but still very effective and offers more control.

You would need to do this to each theme for which you want this change. It won't disturb any others. And it won't disappear when you upgrade.

PS Just in case anyone reading this doesn't know – page.tpl.php lives in any theme directory eg. sites/example.com/themes/garland/
PPS Other characters you might like are • · ⋅ &bull; &middot; &sdot;

arbel’s picture

thank you very much!