unable to save script in ads section

Posted in: Newspaper
Post count: 40

Hi,
I am trying to add a div with a script tag into my side bar ad unit space, but when I try to save, I just get a spinning wheel for a while. I tried refreshing the page, and the unit has not saved and is no longer there. I have isolated the issue and it seems like the script within my div is preventing it from saving. my div looks like this:

<div id=’tpd-box-ad-c’>
<script type=’text/javascript’>
if (TPD_Mobile == false) {
googletag.cmd.push( function() {
googletag.display( ‘tpd-box-ad-c’ );
} );
}
</script></div>

How can I fix this?

Thanks.

Post count: 20688

Hi,

Maybe that script code is not valid, are there any errors in the browser inspector console when you enter the code and save? What exactly is that code supposed to do? also check with the code provider to see if it’s valid if possible.

Thanks

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.