eqilibrium Posted July 5, 2009 Share Posted July 5, 2009 Hello,I have a tracking program that I used in another shop and that I absolutly love, but the thing is that the code must be put between the <body> tags and I only find the file footer and header tags.Is there any file where I can put my code between <body> tags (without ruining my prestashop of course) ?Thank you in advance Link to comment Share on other sites More sharing options...
pneeds Posted July 5, 2009 Share Posted July 5, 2009 Similar posthereWhich was SOLVED. Hope that helps.x Link to comment Share on other sites More sharing options...
eqilibrium Posted July 5, 2009 Author Share Posted July 5, 2009 That post is refering to the <head> tags, and these are in header.tpl. What I need are the <body> tags wich can con be found in any of the files I've seen. Link to comment Share on other sites More sharing options...
rocky Posted July 5, 2009 Share Posted July 5, 2009 The body tag is in header.tpl in your theme directory. You could put the code below the body tag line. Link to comment Share on other sites More sharing options...
eqilibrium Posted July 6, 2009 Author Share Posted July 6, 2009 Thank's Rocky. I've put the code in the header.tpl although I didn't see any <body> tags, I've put it bellow everything else. Let's see if it work's. Link to comment Share on other sites More sharing options...
NeMetzger Posted July 12, 2009 Share Posted July 12, 2009 The beginning body tag is in the header.tpl and the ending body tag is in the footer.tplI use statcounter and I always put that code before the ending body tag. So, that would be in the footer.tpl in this case.Ne' Link to comment Share on other sites More sharing options...
chrissie Posted November 12, 2010 Share Posted November 12, 2010 I know this ones a long time dead, but am bumping it as I'm totally confused about the body tags. I know where they are! But after trying several times to add scripts (various scripts, it doesn't matter which) I'm finding that my site just vanishes ie just a blank page. I get the same result if I place anything before the closing </body> in footer.tpl.In header.tpl the body tag starts: ><body {if $page_name}id="{$page_name|escape:'htmlall':'UTF-8'}"{/if}> {if !$content_only} </pre> <ul>{l s='This shop requires JavaScript to run correctly. Please activate JavaScript in your browser.'}</ul> <br><div> <!-- Header -->< Can anyone tell me exactly if something needs to go "after the <body> tag", or "into the <body> section", where, exactly should it go?ThanksChrissie :-S Link to comment Share on other sites More sharing options...
rocky Posted November 13, 2010 Share Posted November 13, 2010 It should go on a separate line after the <body> tag. If you are pasting code that contains { or } you will need to put {literal} before the code you paste and {/literal} after so that Smarty doesn't get confused and generate an error. Link to comment Share on other sites More sharing options...
chrissie Posted November 13, 2010 Share Posted November 13, 2010 Thanks RockyTried it, but still not having it. Just a blank page again. Never mind :down: Link to comment Share on other sites More sharing options...
bine93 Posted November 30, 2014 Share Posted November 30, 2014 (edited) thank you so much!! i put this code with {literal} just after the line <body... and now no right clic. {literal} <script language=JavaScript> <!-- //Disable right click script III- By Renigade ([email protected]) //For full source code, visit http://www.dynamicdrive.com var message=""; /////////////////////////////////// function clickIE() {if (document.all) {(message);return false;[spam-filter] function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2||e.which==3) {(message);return false;[spam-filter]} if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} document.oncontextmenu=new Function("return false") // --> </script> {/literal} i give the code if it could help someone. --------------------------- www.shamyna.fr --------------------------- Edited January 26, 2015 by bine93 (see edit history) Link to comment Share on other sites More sharing options...
Attrexx Posted February 13, 2015 Share Posted February 13, 2015 Opening <body> tag is in header.tpl Ending </body> tag is in footer.tpl Link to comment Share on other sites More sharing options...
Recommended Posts