Website name not appearing in title bar

lalindra - January 1, 2009 - 16:22

Hi, I am a newbie to drupal. I am building a website and I know that the name of the website is supposed to be displayed in the title bar. But it does not in my case. The page name displays (ex: Forums| , Recent Posts| ) but after the pipe the site name does not appear. Could someone tell me where I have gone wrong?

Thanks in advance.

fill out site information

jt_jones - January 1, 2009 - 16:42

You probably need to add the web site name of your site at Site Configuration > Site Information.

Website name is in place, still????

lalindra - January 2, 2009 - 15:37

Since the website name is a required field in the site information page, I have included it. It was there since the initiation of the website. So, it must be something else that I am not seeing. Any other ideas?

If you go to Administration

JohnnyHa - January 2, 2009 - 15:51

If you go to Administration -> Themes and select Configuration next to your current theme. Is Website name enabled ? There you can enable and disable different elements like logo, website name and website slogan.

Also check in your page.tpl.php that the variable actually is there.
$site_name

Can call it out like this:

<?php
print $site_name
?>

custom theme?

jt_jones - January 3, 2009 - 02:19

@lalindra - Are you using a custom theme? Does your page.tpl.php file have the following code in the head tag?

<title><?php print $head_title; ?></title>

Corrected

lalindra - January 3, 2009 - 19:09

Thanks to those who replied. I corrected the code. Added the following line.

<title><?php print $head_title;  print $site_name; ?></title>

 
 

Drupal is a registered trademark of Dries Buytaert.