loading js file in the header

yavuz / 2010-09-10 14:54:23   

I am trying to load a js file in the header for a plugin that I am developing for my wife's site.
http://mihrinnisa.com
Plugin is for front page.
I have managed to get the data I need from the db.
However, I have no clue about how to load a js file in the header.
I have seen some lines like
$exhibit['lib_js'] = array('grow2.vaska.js'); in exhibit.grow_no_title.php
I have tried to do the same but it did not work?
What is the best way to do this?

yavuz / 2010-09-10 14:55:20   

The page link is mihrinnisa.com

lemathieu A / 2010-09-10 15:59:46   

Open your theme index.php

You see that call at the 16th line :

  1. < script type='text/javascript' src='<%baseurl%><%basename%>/site/js/jquery.js'></script>

So upload the .js file you have (in /ndxz-studio/site/js) and call it the same way from the same place in your index.php.

yavuz / 2010-09-11 05:42:04   

Thanks a lot.
Works like a charm....

This thread has been closed, thank you.