I've noticed on two different Drupal installations I have that the page title (the one shown in the title bar of the browser on any given page), isn't displaying properly. For sites with no slogan entered, it merely shows the site name and a pipe symbol. For subsequent pages, one expects the see the page title, followed by the pipe symbol, then the site name. But all that's showing is the page name and a pipe symbol.

For the home page, if no slogan is entered, the site name should stand alone, with no pipe symbol. The subsequent pages should show the page name | site name.

I searched the issues for the word "title", but found nothing relevant.

Thanks!

Jeff

Comments

Steel Rat’s picture

Any help on this at all?

jeremycaldwell’s picture

Assigned: Unassigned » sociotech
Deepika.chavan’s picture

Hi,
That pipe symbol is coming because of following css line which is there in style.css file:

#header-first h1 {
 border-right:1px solid #DDDDDD;
}

If you don't want that right-border then add following line :

#header-first h1 {
 border-right: none; 
}

If you want that line only if both site name and slogan is there then add following line of code in your page.tpl.php file and page-front.tpl.php file.
Replace ,

          <?php if ($site_name): ?>
                 <h1><a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>"><?php print $site_name; ?></a></h1>
          <?php endif; ?>

by following code :

          <?php if ($site_name): ?>
	      <?php if ($site_slogan):?>
		  <h1 style="border-right: 2px solid #555;"><a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>"><?php print $site_name; ?></a></h1> 
	      <?php endif;?>
	      <?php if(!$site_slogan):?>
		  <h1><a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>"><?php print $site_name; ?></a></h1> 
	      <?php endif; ?>
	   <?php endif; ?>

Rgrds,
Deepika Chavan.

Steel Rat’s picture

I don't think we're talking about the same thing. I'm referring to what appears in the title bar of the browser, not the header area of the web page.

sheena_d’s picture

Status: Active » Closed (duplicate)

I think this may be related to the following Fusion Core issue: http://drupal.org/node/1144188

If not, feel free to re-open.

Thanks,
Sheena

Summit’s picture

Bookmarking #3. Looked for ages to get rid of this piping symbol! Greetings, Martijn

Steel Rat’s picture

I'm not using the Page Title module, just the theme as is. And the problem still exists. To see what I mean, look at the title bar of your browser on this site/page, you'll see the page title followed by the pipe symbol as a separater, then the site name. Then read my original description and you'll see the difference.