1

I have installed Drupal 6.19 and 6.20; in Drupal 6.19, I can see the page title like "site title|page title", but in Drupal 6.20 the page title "site title".

How can I add the node title to the page title in Drupal 6.19?
I didn't use Page Title in Drupal 6.19, nor did I in Drupal 6.20.

4
  • I am using 6.20 and it uses Page Title | Site title and I have not changed anything. Have you check Site information?
    – WestieUK
    Commented Apr 4, 2011 at 7:37
  • thank u. i checked but i didnt find anything. what should i find in site information?
    – user780
    Commented Apr 4, 2011 at 7:43
  • The "Name", by default this should be appearing next to your Page Tile after a pipe. Try changing it see if it makes a difference. Also try a stock theme...
    – WestieUK
    Commented Apr 4, 2011 at 7:48
  • You should try changing the theme currently used in your website; set another theme as default one.
    – WestieUK
    Commented Apr 4, 2011 at 8:55

1 Answer 1

2

In the template.php of the theme add the following code.

function phptemplate_preprocess_page(&$vars) {
  $title = $vars['title'];
  $site_name = $vars['site_name'];

  $vars['head_title'] = implode(' - ', array($site_name, $title));
}

Verify the $head_title variable is present in page.tpl.php.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.