Firstly, did you go to the studiopress support forums and ask this yet?
[
studiopress.com...]
Secondly, do you really mean template? Or do you really mean layout?
I am guessing you mean layout (and I apologize if I guessed wrong). There is a conditional for displaying which layout is being used:
genesis_site_layout();
So if you know the name of the layout, you could do a conditional to show the javascript.
You might try something like this:
WARNING: I AM A TERRIBLE PHP CODER. USING THE FOLLOWING CODE MIGHT JENK YOUR WHOLE SITE. YOU HAVE BEEN WARNED: <?php
$site_layout = genesis_site_layout();
if ( 'LAYOUT-NAME-HERE' == $site_layout ) {
?>
[JAVASCRIPT GOES HERE]
<?php } ?>
Again, I pull most of my php code out of my keister, and I am far too lazy to google it and see if it is the right format or not, so USE AT YOUR OWN RISK.
Chances are it is probably missing a ; or something like that somewhere.
Whatev.
I would also install the genesis simple hooks plugin so that it is easy to install this code into your template.
You might get an idea on how to do it correctly from the place where I stole this code, namely:
[
billerickson.net...]
Hope this helps.