mahmud.shahmuradov Posted January 16, 2019 Share Posted January 16, 2019 (edited) I have a little code for index.tpl after blocks end. I need to external js file to <head> How can I do it or after </body> Edited January 16, 2019 by mahmud.shahmuradov (see edit history) Link to comment Share on other sites More sharing options...
JBW Posted January 16, 2019 Share Posted January 16, 2019 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 More sharing options...
mahmud.shahmuradov Posted January 17, 2019 Author Share Posted January 17, 2019 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now