aktivsport Posted August 10, 2013 Share Posted August 10, 2013 Hello, i have problem with my chat on zopim, when i try to put script code to header.tpl in my theme, it throws error 500 i'm putting it before </head> <!--Start of Zopim Live Chat Script--> <script type="text/javascript"> window.$zopim||(function(d,s){var z=$zopim=function©{z._.push©},$=z.s= d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set. _.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8'); $.src='//v2.zopim.com/?1RMnJHvyeI0ICiVHMvpYN5fJ';z.t=+new Date;$. type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script'); </script> <!--End of Zopim Live Chat Script--> Link to comment Share on other sites More sharing options...
vekia Posted August 10, 2013 Share Posted August 10, 2013 it's because you have to use {literal} {/literal} tags: {literal} <!--Start of Zopim Live Chat Script--> <script type="text/javascript"> window.$zopim||(function(d,s){var z=$zopim=function©{z._.push©},$=z.s= d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set. _.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8'); $.src='//v2.zopim.com/?1RMnJHvyeI0ICiVHMvpYN5fJ';z.t=+new Date;$. type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script'); </script> <!--End of Zopim Live Chat Script--> {/literal} Link to comment Share on other sites More sharing options...
aktivsport Posted August 10, 2013 Author Share Posted August 10, 2013 thanks it works Link to comment Share on other sites More sharing options...
jeckyl Posted August 10, 2013 Share Posted August 10, 2013 Hi, i think it's better to put it at the bottom of your page before </body> Link to comment Share on other sites More sharing options...
Recommended Posts