Jump to content

Where are the <body> tags in prestashop?


Recommended Posts

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

  • 1 year later...

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?
Thanks
Chrissie :-S

Link to comment
Share on other sites

  • 4 years later...

thank you so much!!

 

i put this code with {literal} just after the line <body...

and now no right clic.

 

:D

{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 by bine93 (see edit history)
Link to comment
Share on other sites

  • 2 months later...
×
×
  • Create New...