View Single Post
  #1  
Old 07-23-2016, 08:32 PM
 
kontrabass_forum kontrabass_forum is offline
 

Advanced Member
  
Join Date: Mar 2016
Posts: 41
 

Default Adding JS into header/body.tpl causes internal error

Hello,

I'm trying to add some JS into my <head></head>, to display a site ssl seal.. Using theme tweaker, I edit the template theme_tweaker/default/en/header/body.tpl and put in the javascript:
Code:
<script type="text/javascript"> var __dcid = __dcid || [];__dcid.push(["DigiCertClickID_wrFGN2rC", "5", "l", "black", "wrFGN2rC"]);(function(){var cid=document.createElement("script");cid.async=true;cid.src="//seal.digicert.com/seals/cascade/seal.min.js";var s = document.getElementsByTagName("script");var ls = s[(s.length - 1)];ls.parentNode.insertBefore(cid, ls.nextSibling);}()); </script>

However, it only causes an "internal error".... Is there something in this javascript code that's throwing off the template?
__________________
x-cart 5.3.x