Title bar code

Huck Jones Posted in Technical Support 10 years ago

Where can I find the code for the title bar text, besides the locale code that is?

Replies
German Michael Zülsdorff Replied 10 years ago

and the function name is ossnUNDERSCOREprint ossn_print

German Michael Zülsdorff Replied 10 years ago

(and this editor is driving me nuts) : First ">" is obsolete, line should start with "if"

German Michael Zülsdorff Replied 10 years ago
if (isset($params['title'])) {
    $title = $params['title'];
  if ($title == ossn_print('site:index')) {
 $title = 'YOUR_OWN_GREETING';
} else {
 $title = $title . ' : ' . $sitename;
}
 } else {
 $title = $sitename;
 }

sorry: Father's Day celebrating in Germany - got too many beers already :(

ph Huck Jones Replied 10 years ago

Tried using that to no avail. All I got is a blank page for some reason.

German Michael Zülsdorff Replied 10 years ago

You might want to handle this special case like

if ($title = isset($params['title'])) {
    if ($title == ossn_print('site:index') {
        $title = 'YOUR_OWN_GREETING'; // or better add your custom string to language file
    } else {
        $title = $title . ' : ' . $sitename;
    }
} else {
    $title = $sitename;
}
ph Huck Jones Replied 10 years ago

Yeah, saw that thing. Problem is that the line on page.php is shared by both the news feed and login pages. What I really wanted was to change the welcome message into a different one without affecting the newsfeed title and the like.

German Michael Zülsdorff Replied 10 years ago

see /themes/YOUR_THEME/page/page.php around line 13

ph Huck Jones Replied 10 years ago

I'm referring to the one on the browser title bar, i.e. the title that shows up on a browser tab.

Indonesian Arsalan Shah Replied 10 years ago

You mean css? or the icons on topbar? and by title bar you mean topbar blue/black bar?