Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add a header tag in Drupal 6?

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

<?php print $head; ?>

I assume I should write that tag somewhere else. What is the proper way of adding it? Thank you for the help.


1 Answers

You can use drupal_set_html_head() to add a tag into the head section of the html

For example, drupal_set_html_head() can optionally be used in template_preprocess_page() as described here

like image 178
Laxman13 Avatar answered Nov 27 '25 05:11

Laxman13



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!