Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
562 views
in Themes by

1 Answer

+2 votes
by
selected by
 
Best answer

You can output JS (in script tags) anywhere throughout the theme. The best place would be in the 'head_script' method.

public function head_script()
{
    parent::head_script();

    $this->output_raw('<script>your code here</script>');
}

...