Jump to content

Adding Javascript to my header.tpl in Prestashop 1.5


Recommended Posts

I have an SSL that I want to place in the header of my store. I was thinking of pasting the following code into header.tpl but I want to make sure it's positioned to the right side. Does anyone have experience doing this in prestashop? Thanks!

<script language="javascript" type="text/javascript">

//<![CDATA[
var tl_loc0=(window.location.protocol == "https:")? "https://secure.comodo.net/trustlogo/javascript/trustlogo.js" :
"http://www.trustlogo.com/trustlogo/javascript/trustlogo.js";
document.writeln('<scr' + 'ipt language="JavaScript" src="'+tl_loc0+'" type="text\/javascript">' + '<\/scr' + 'ipt>');
//]]>
</script>

2. Copy and Paste the following piece of code and insert EXACTLY before your </BODY> tag.

<script language="JavaScript" type="text/javascript">
TrustLogo("http://www.nesgamestore.com/themes/nestheme/img/comodo_secure.png", "CL1", "none");
</script>
<a  href="http://ssl.comodo.com" id="comodoTL">SSL Certificates</a>

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...