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:
<?php if ($variables['node']->type = 'home_page'){ ?>
Code....
<?php } ?>
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)