I need to add some javascript to my home page. I only want to add it to my home page. How do I do this?
I see from another post that I should be doing something like this:
// Adds javascript
add_action( 'genesis_meta', 'custom_javascript' );
function custom_javascript() { ?>
Javascript goes here
<?php
}
Which php file should I add this to?