Jump to content

Problem with zopim chat


Recommended Posts

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

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

×
×
  • Create New...