Jump to content

Script doesn't show up on all pages correctly


denkadet

Recommended Posts

Hello, everybody. It's my first topic as the problem is uncommon. I'm trying to add a script to my website which is on local server yet by using HtmlBox plugin and place the code right into the header so it's supposed to show up on all pages. It actually does show up correctly on the main page but only there.

 

post-1214846-0-51580400-1478730427_thumb.jpgpost-1214846-0-19809800-1478730429_thumb.jpg

 

On the rest of the pages it goes under the footer as a white area.

post-1214846-0-50323300-1478730433_thumb.jpg

 

Can anyone help? The code is a script for callback from zadarma.com looks like 

 

<script type="text/javascript">
var ZCallbackWidgetLinkId = 'my link id is here';
var ZCallbackWidgetDomain = 'my.zadarma.com';
(function(){
var lt = document.createElement('script');
lt.type ='text/javascript';
lt.charset = 'utf-8';
lt.async = true;
lt.src = '' + ZCallbackWidgetDomain + '/callbackWidget/js/main.min.js?unq='+Math.floor(Math.random(0,1000)*1000);
var sc = document.getElementsByTagName('script')[0];
if (sc) sc.parentNode.insertBefore(lt, sc);
else document.documentElement.firstChild.appendChild(lt);
})();
</script>

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...