Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / load javascript in <head> for certain category?

load javascript in <head> for certain category?

Locked

Views: 1,182

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
23 Nov 2009, 6:26 AM
#1
magicmike avatar

magicmike

New Zenner

Join Date:
Jun 2009
Posts:
6
Plugin Contributions:
0

load javascript in <head> for certain category?

Hello all,

I know this is probably a simple fix, just haven't found anything yet on the forum or other help.

I need to load an external script (javascript) only on a certain category (and sub-categories) in the <head> tag.

I'm learning PHP, but I am assuming there is a way to create a "if" statement to only load the javascript if catagoryID is correct.
Just not sure on how to write the statement and where is the proper file to put it in.

Thanks for any help