Jump to content

Trustpilot with different language


teralite

Recommended Posts

Hi all!

 

Im trying to add the trustpilot badge on same theme but with a different badge depending on language.

Im sorry to say that im very new to scripting and dont know the exact code to make this work.

 

Im thinking something like this:

 

{if $lang_iso=sv}

<div id="trustpilot"><a href="https://se.trustpilot.com/review/www.ljustema.se" title="Se omdömen på https://se.trustpilot.com"> <script type="text/javascript"> var tpJsHost = (("https:" == document.location.protocol) ? "https://s3.amazonaws.com/trustbox.trustpilot.com/badge/sv/5stars/tp_badge-140.png" : "http://trustbox.trustpilot.com/badge/sv/5stars/tp_badge-140.png"); document.write(unescape("%3Cimg src="+ tpJsHost + " alt=Trustpilot Badge %3E%3C/img%3E")); </script> </a>
                {elseif $lang_iso=dk}
 
<a href="https://se.trustpilot.com/review/ledtema.dk" title="Se omdömen på https://se.trustpilot.com"> <script type="text/javascript"> var tpJsHost = (("https:" == document.location.protocol) ? "https://s3.amazonaws.com/trustbox.trustpilot.com/badge/sv/4stars/tp_badge-140.png" : "http://trustbox.trustpilot.com/badge/sv/4stars/tp_badge-140.png"); document.write(unescape("%3Cimg src="+ tpJsHost + " alt=Trustpilot Badge %3E%3C/img%3E")); </script> </a>
 
</div>
{/if}
 
What am i doing wrong here?
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...