[support] Where to add items to the <head> section for all pages?

Ms. Nancy Wichmann nan_wich at bellsouth.net
Sat Sep 15 23:39:53 UTC 2012


The best solution is to include it in the (sub)theme's .info file. Next best is to include it in the .info file of a custom module, if you have one. If nothing else works, there is hook_init(). Never, ever, hack core.

 
Nancy 

Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.



>________________________________
> From: Dotan Cohen
>
>I need to add a Javascript include on all pages. I have grepped about
>for "DOCTYPE html PUBLIC" but none of the files in
>~/sites/all/themes/traction/ contains that text. The only other place
>that seemed likely was ~/modules/system/html.tpl.php but adding the
>Javascript include there did not make it appear in the page source.
>Which file contains the <head> section HTML that is included in all
>pages?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120915/2830671a/attachment.html 


More information about the support mailing list