How to use some code only in the template of selected content types? I have some code (calling JS and CSS) in the head section that I only want to appear if the HTML template is used for the content type 'home page'.

I did it like this in the html template:

&lt;?php if ($variables['node']-&gt;type = 'home_page'){ ?&gt; 
Code....
&lt;?php } ?&gt; 


But if I check the source code of my pages, the code is showing up in all off my pages, not only on the pages that use the 'home page' template.

Any tips, code, links?

PS: I'm not good at PHP (I normally cut and paste)
Typo:

if ($variables['node']-&gt;type = 'home_page'){

change it into:

if ($variables['node']-&gt;type == 'home_page'){