I would like to not show the site's slogan in the title of the site, but still show it on the page. Is there a way to hack Drupal to take it out of the title? I see in the theme there is:

?php print $head_title ?

But how do you change what $head_title is composed of?

Thanks!

Comments

anner’s picture

In administer -> themes -> configure change what's checked in the "Toggle Display" box towards the bottom of the screen.

robertdouglass’s picture

Check out the Page title module I wrote just to do this.

- Robert Douglass

-----
My Drupal book: Building Online Communities with Drupal, phpBB and WordPress

technigrafa’s picture

Robert,

That is exactly what I needed! Thanks!

Although it may be helpful to newbies to mention in your instructions file that they can use this following line specifically to generate the title from their theme file if they don't have a template.php file:


print page_title_page_get_title()

nodegate’s picture

This module simply doesn't work. Using Drupal 5.1.

eli03’s picture

there's a new module release for v5.1 . see my paradise philippines site. Slogan is different from the title.
----------
Paradise Philippines - Come and Visit the beautiful Philippines Paradise!

pztrick’s picture

It was easy enough to resolve in page.tpl.php.

<title>
<?php if ($title): ?>
<?php print "$title | $site_name"; ?>
<?php endif; ?>
<?php if (!$title): ?>
<?php print "$site_name | WHATEVER YOU WANT"; ?>
<?php endif; ?>
</title>

The former $title | $site_name behaves identical to $head_title. The latter can be whatever you want.