Adding js and css files to Zen Cart

If your doing some modifications to a Zen Cart template, you may need to add a css file or a javascript file to support the adjustment. There are simple ways to add new css and javascript files to a Zen Cart template.

Adding javascript files

To add a javascript file to all pages of a Zen Cart template,

  • Create a file or files with the naming convention jscript_.js
  • Place it(them) in a folder /includes/templates//jscript/

All jscript_<>.js files in the includes/templates//jscript/ will be loaded in the Zen Cart header.

Adding CSS files

To add a CSS file to all pages of a Zen Cart template,

  • Create a file or files with the naming convention stylesheet_.css
  • Place it(them) in a folder /includes/templates//css/

All stylesheet_.css files in the includes/templates//css/ will be loaded in the Zen Cart header.

Leave a Reply