How to change separator character in the title? #950
-
Hi, Is it possible to change the separator character in the website's name, the one displayed in the browser's title bar? It is normally something in the way of: "Page title (taken from |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
A quick and dirty solution is to modify lines 2987-2988 in |
Beta Was this translation helpful? Give feedback.
-
Set
This solution works on a per-page-basis. Good when you want to adjust the title of a few pages. Mind-numbing terrible when you have to adjust the title of all pages. Fortunately the API for developers lets you automate things. As Giovanni kindly explained, you could use a layout file or onParsePageOutput() to change the HTML title element of all pages on your website. |
Beta Was this translation helpful? Give feedback.
Thank you for the comments! Line 4 of
header.html
has this code:<title><?php echo $this->yellow->page->getHtml("titleHeader") ?></title>
How can I only change the separator character here?Should I just change it to something like this (
" | "
instead of" - "
)?It seems to be working alright.