<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6002.18658" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>OK, I think I have someone so lets see how they do otherwise I'll be back 
to <BR>you.<BR><BR>Thanks<BR><BR></DIV>
<DIV style="FONT: 10pt arial">----- Original Message ----- 
<DIV style="BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> <A 
title=Richard@Damon-Family.org href="mailto:Richard@Damon-Family.org">Richard 
Damon</A> </DIV>
<DIV><B>To:</B> <A title=support@drupal.org 
href="mailto:support@drupal.org">support@drupal.org</A> </DIV>
<DIV><B>Sent:</B> Saturday, September 15, 2012 5:33 PM</DIV>
<DIV><B>Subject:</B> Re: [support] Where to add items to the &lt;head&gt; 
section for allpages?</DIV></DIV>
<DIV><BR></DIV>On 9/15/12 5:08 PM, Dotan Cohen wrote:<BR>&gt; I am using this 
terrific template:<BR>&gt; <A 
href="http://drupal.org/project/traction">http://drupal.org/project/traction</A><BR>&gt;<BR>&gt; 
I need to add a Javascript include on all pages. I have grepped about<BR>&gt; 
for "DOCTYPE html PUBLIC" but none of the files in<BR>&gt; 
~/sites/all/themes/traction/ contains that text. The only other place<BR>&gt; 
that seemed likely was ~/modules/system/html.tpl.php but adding the<BR>&gt; 
Javascript include there did not make it appear in the page source.<BR>&gt; 
Which file contains the &lt;head&gt; section HTML that is included in 
all<BR>&gt; pages?<BR>&gt;<BR>&gt; 
Thanks!<BR>&gt;<BR>modules/system/html.tpl.php&nbsp; puts out the outer most 
html for the page<BR>(actually, this is where the page is finally rendered, with 
most of the<BR>page in variables that it prints.<BR><BR>THIS IS CORE, DO NOT 
HACK IT.<BR><BR>It is possible that your hacking of it did not work because 
someone has<BR>overridden it (search for other html.tpl.php files)<BR><BR>This 
template (and any overrides if it is allowed to be overridden) is<BR>supposed to 
get the html tags to include scripts from the $scripts<BR>global, which it will 
print out. A theme is supposed to add needed<BR>scripts with a statement in its 
.info file like:<BR>scripts[] = foo.js<BR><BR>Note also that you will need to 
clear caches after making changes or<BR>they may not appear.<BR><BR>A quick 
google search find <A 
href="http://drupal.org/node/1073212">http://drupal.org/node/1073212</A> which 
has a<BR>discussion of a similar issue.<BR><BR>-- <BR>Richard Damon<BR><BR>-- 
<BR>[ Drupal support list | <A 
href="http://lists.drupal.org/">http://lists.drupal.org/</A> ]</BODY></HTML>