How to add a title tag in Drupal 6?

I need to add a tag to the title. I open page.tpl.php and I see this line:

<?php print $head; ?>

I assume that I should write this tag somewhere else. What is the correct way to add it? Thanks for the help.

+3
source share
2 answers

You can use drupal_set_html_head()to add tag to html header section

For example, drupal_set_html_head()you can optionally use in template_preprocess_page(), as described here

+6
source

If you just create your own website, probably in the right place, in page.tpl.php, somewhere between <head>and </head>. The template is as simple as this one.

drupal_set_html_head() - , , Drupal ( , , , , ).

+2

All Articles