{"id":840,"date":"2014-08-13T22:55:14","date_gmt":"2014-08-13T22:55:14","guid":{"rendered":"http:\/\/www.advancedwebhelp.com\/blog\/?p=840"},"modified":"2014-08-13T23:11:22","modified_gmt":"2014-08-13T23:11:22","slug":"adding-js-and-css-files-to-zen-cart","status":"publish","type":"post","link":"https:\/\/www.advancedwebhelp.com\/blog\/2014\/adding-js-and-css-files-to-zen-cart","title":{"rendered":"Adding js and css files to Zen Cart"},"content":{"rendered":"<p>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.<\/p>\n<h1>Adding javascript files<\/h1>\n<p>To add a javascript file to all pages of a Zen Cart template,<\/p>\n<ul>\n<li>Create a file or files with the naming convention jscript_<unique_name>.js<\/li>\n<li>Place it(them) in a folder \/includes\/templates\/<template_directory>\/jscript\/<\/li>\n<\/ul>\n<p>All jscript_<>.js files in the includes\/templates\/<template_directory>\/jscript\/ will be loaded in the Zen Cart header.<\/p>\n<h1>Adding CSS files<\/h1>\n<p>To add a CSS file to all pages of a Zen Cart template,<\/p>\n<ul>\n<li>Create a file or files with the naming convention stylesheet_<unique_name>.css<\/li>\n<li>Place it(them) in a folder \/includes\/templates\/<template_directory>\/css\/<\/li>\n<\/ul>\n<p>All stylesheet_<unique_name>.css files in the includes\/templates\/<template_directory>\/css\/ will be loaded in the Zen Cart header.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-840","post","type-post","status-publish","format-standard","hentry","category-zen-cart"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/840","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/comments?post=840"}],"version-history":[{"count":2,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/840\/revisions"}],"predecessor-version":[{"id":843,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/posts\/840\/revisions\/843"}],"wp:attachment":[{"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/media?parent=840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/categories?post=840"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.advancedwebhelp.com\/blog\/wp-json\/wp\/v2\/tags?post=840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}