Jump to content

Adding external JS to header or bottom. Prestashop 1.7


Recommended Posts

To head: file /themes/classic/templates/_partials/head.tpl or javascript.tpl  -- or same as bottom

To bottom: file /themes/classic/templates/layouts/layout-both-columns.tpl

In general I think it's a better way to add your code to /themes/classic/assets/js/custom.js - this would be save for upgrades - check out following documentation:

https://devdocs.prestashop.com/1.7/themes/getting-started/asset-management/

Link to comment
Share on other sites

21 hours ago, JBW said:

To head: file /themes/classic/templates/_partials/head.tpl or javascript.tpl  -- or same as bottom

To bottom: file /themes/classic/templates/layouts/layout-both-columns.tpl

In general I think it's a better way to add your code to /themes/classic/assets/js/custom.js - this would be save for upgrades - check out following documentation:

https://devdocs.prestashop.com/1.7/themes/getting-started/asset-management/

THANK you very much!
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...