I want to create a module position in the <head> </head> area of my template that will allow me to load modules that contain javascript that only loads on specific pages on my site. I don't want to bloat my homepage with Javascript that isn't needed on that page.
So I opened my gantry index.php and added this code before the ending </head> tag.
<?php echo $gantry->displayModules('add-head-code','standard','standard'); ?>
It loads just as I suspect it would and even loaded my javascript file. However it adds the module div tags around it.
<div class="rt-grid-12 rt-alpha rt-omega">
<div class="rt-block ">
<div class="module-surround">
<div class="module-content">
<div class="custom" >
<script src="//cdn.optimizely.com/js/test123456.js"></script></div>
</div>
<div class="module-bottom"></div>
</div>
</div>
</div>
So I'm wonding if displayModules('add-head-code','standard','standard'); is the key? What does 'standard','standard' mean? Is there an option that will display no div tags and just the contents of the module? My goal would to have the module only load this into my head:
<script src="//cdn.optimizely.com/js/test123456.js"></script>
Any suggestions or is there a module that could do this for me without a template hack?