nasreddine hafidi Posted September 25, 2021 Share Posted September 25, 2021 I have some javascript code to my theme, on my website prestashop, where can i can insert this line of codes ! Any help please ! Link to comment Share on other sites More sharing options...
musicmaster Posted September 26, 2021 Share Posted September 26, 2021 header.tpl Link to comment Share on other sites More sharing options...
nasreddine hafidi Posted September 27, 2021 Author Share Posted September 27, 2021 22 hours ago, musicmaster said: header.tpl should i inert it between <script></script> or not please ! Link to comment Share on other sites More sharing options...
musicmaster Posted September 27, 2021 Share Posted September 27, 2021 Yes, of course. Link to comment Share on other sites More sharing options...
nasreddine hafidi Posted September 27, 2021 Author Share Posted September 27, 2021 2 hours ago, musicmaster said: Yes, of course. Already try this, but that's not work, it's replace the symbole '<' withe somehting else Link to comment Share on other sites More sharing options...
razaro Posted September 27, 2021 Share Posted September 27, 2021 Have you tried <script> {literal} // your code here {/literal} </script> Link to comment Share on other sites More sharing options...
nasreddine hafidi Posted September 27, 2021 Author Share Posted September 27, 2021 52 minutes ago, razaro said: Have you tried <script> {literal} // your code here {/literal} </script> The probleme is that on my code the symbole '<' in a loop, is not showen, and it's remplaced by something else Link to comment Share on other sites More sharing options...
razaro Posted September 27, 2021 Share Posted September 27, 2021 So have you tried with literal ? And can you share code you need to add? Without any personal data. Link to comment Share on other sites More sharing options...
nasreddine hafidi Posted September 27, 2021 Author Share Posted September 27, 2021 14 hours ago, razaro said: So have you tried with literal ? And can you share code you need to add? Without any personal data. No ! but i fount another way to do it with CSS Link to comment Share on other sites More sharing options...
Nickovitshj Posted September 27, 2021 Share Posted September 27, 2021 Can you share your code? Remove/replace sensitive data if it contains some kind of key linked to ur account. Link to comment Share on other sites More sharing options...
hshaker Posted September 27, 2021 Share Posted September 27, 2021 Le 25/09/2021 à 7:06 PM, nasreddine hafidi a dit : I have some javascript code to my theme, on my website prestashop, where can i can insert this line of codes ! Any help please ! head.tpl {literal}<script> js code here</script> {/literal} Link to comment Share on other sites More sharing options...
Nickovitshj Posted September 28, 2021 Share Posted September 28, 2021 8 hours ago, hshaker said: head.tpl {literal}<script> js code here</script> {/literal} Can be found at: /var/www/html/themes/THEMENAME/templates/_partials/head.tpl 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