Jump to content

Adding custom script for SSL Logo to footer


Leizu Silk

Recommended Posts

I need to add two set of code to my website (im thinking in the footer) from Comodo SSL. Theyve given me the following: 

Please insert the following two snippets of HTML code into your webpage document. You will need to repeat the process for each web page you wish to display the TrustLogo.

Add this before your </HEAD> tag

<script type="text/javascript"> //<![CDATA[ 
var tlJsHost = ((window.location.protocol == "https:") ? "https://secure.comodo.com/" : "http://www.trustlogo.com/");
document.write(unescape("%3Cscript src='" + tlJsHost + "trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%3C/script%3E"));
//]]>
</script>

Add this before your </BODY> tag

<script language="JavaScript" type="text/javascript">
TrustLogo("https://www.boutiquesleep.co.za/comodo_secure_seal_113x59_transp.png", "CL1", "none");
</script>
<a  href="https://ssl.comodo.com" id="comodoTL">Comodo SSL</a>

 

I had a look at my footer.tpl but it doesnt feature a head tag so im at a loss. Im running prestashop 1.6.1.18. If anyone can advise I would be very grateful!

Link to comment
Share on other sites

Thanks for your help @NemoPS I have done that but it hasnt worked. Instead all I have is a link in the bottom left corner to positivessl.com. I contacted Comodo support and they said the following: 

"You have to place both the codes either in "header.tpl" or "footer.tpl" depends upon the location where you want the trustlogo image."

Im pretty confused. Any assistance is appreciated!

Link to comment
Share on other sites

WHat they said is exactly what I wrote you before:

 The head tag is exclusively at the top, so you'd have to put the first snippet in header.tpl, and the second in footer.tpl (before the closing /body)

Put this in header.tpl

<script type="text/javascript"> //<![CDATA[ 

var tlJsHost = ((window.location.protocol == "https:") ? "https://secure.comodo.com/" : "http://www.trustlogo.com/");
document.write(unescape("%3Cscript src='" + tlJsHost + "trustlogo/javascript/trustlogo.js' type='text/javascript'%3E%3C/script%3E"));
//]]>
</script>

And this in footer.tpl

 

<script language="JavaScript" type="text/javascript">
TrustLogo("https://www.boutiquesleep.co.za/comodo_secure_seal_113x59_transp.png", "CL1", "none");
</script>
<a  href="https://ssl.comodo.com" id="comodoTL">Comodo SSL</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...