FerreireX Posted August 2, 2019 Share Posted August 2, 2019 Hey, I have some troubles with some ways to insert script codes to the header, looks don't work in any Module... I have some pages using ContenBox but in the last 1.7.6 looks isn't work. Any recommendation? Link to comment Share on other sites More sharing options...
joseantgv Posted August 2, 2019 Share Posted August 2, 2019 Could you give more details? Which problems do you have? Maybe your template doesn't print hook header? Link to comment Share on other sites More sharing options...
FerreireX Posted August 2, 2019 Author Share Posted August 2, 2019 Thanks for the fast reply @joseantgv I have the Module in header hook, the script I'm using is from the fullstory, but still no return to server fullstory if the script have been inserted corrected in the header page. Link to comment Share on other sites More sharing options...
joseantgv Posted August 2, 2019 Share Posted August 2, 2019 Check in the source code if the script is displayed Link to comment Share on other sites More sharing options...
FerreireX Posted August 2, 2019 Author Share Posted August 2, 2019 How can I check that? Do you mean in the script code? Link to comment Share on other sites More sharing options...
joseantgv Posted August 2, 2019 Share Posted August 2, 2019 I mean "Right click -> View source" in your store. Link to comment Share on other sites More sharing options...
prestamodulo Posted August 2, 2019 Share Posted August 2, 2019 It could be because script tags removed before they saved in database also header hook does not return anything so you should also try to return your script code at last line of header function if you are not saving in database. Try to insert directly in header.tpl file or you might need a special module to do this work. Link to comment Share on other sites More sharing options...
FerreireX Posted August 2, 2019 Author Share Posted August 2, 2019 @joseantgv I have checked and it isn't really there. In Shop Parameters - General Allow iframes on HTML fields - activated Use HTMLPurifier Library - deactivated But still not working. @prestamodulo I have inserted in theme folder inside the file header.tpl in different places but in all places, I got an error 500. Link to comment Share on other sites More sharing options...
joseantgv Posted August 2, 2019 Share Posted August 2, 2019 Insert directly in TPL and embed the code between {literal} code {/literal} Link to comment Share on other sites More sharing options...
prestamodulo Posted August 2, 2019 Share Posted August 2, 2019 9 minutes ago, FerreireX said: I have inserted in theme folder inside the file header.tpl in different places but in all places, I got an error 500. You have to place just above </head> Link to comment Share on other sites More sharing options...
FerreireX Posted August 2, 2019 Author Share Posted August 2, 2019 @joseantgv with your code the Script work works perfect, but all icons from the site disappear. @prestamodulo doesn't have </head> in header.tpl file. Link to comment Share on other sites More sharing options...
prestamodulo Posted August 2, 2019 Share Posted August 2, 2019 2 minutes ago, FerreireX said: doesn't have </head> in header.tpl file. may be your theme including head section from different tpl check which file is included in header.tpl file and try to insert code in the respective file. Link to comment Share on other sites More sharing options...
FerreireX Posted August 2, 2019 Author Share Posted August 2, 2019 (edited) I have tried again to insert the code on HTMLBox and now works, but the icons from the Cart and Account, etc disappear. How can I check where the problem comes? Found the script problem, is from Hummcommerce, the Fullstory script works fine on that Module. Edited August 2, 2019 by FerreireX (see edit history) 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