Notifications
Clear all

Ads Manager broke my comments on WpDiscuz

6 Posts
2 Users
0 Reactions
6,995 Views
Posts: 4214
 Tom
Admin
(@tomson)
Famed Member
Joined: 10 years ago

As I've already mentioned this code should not contain line breaks. try these variants:

 

<div style="overflow: hidden;">
<script>googletag.cmd.push(function() { var mappingInComments = googletag.sizeMapping().addSize([0, 0], [300,250]).addSize([336, 0], [[336,280],[300,250]]).build(); googletag.defineSlot('/283405443/PTP//news//article//in_comments', [300, 250], 'div-gpt-ad-in_comments-1').defineSizeMapping(mappingInComments).addService(googletag.pubads()); googletag.enableServices(); googletag.display('div-gpt-ad-in_comments-1');});</script>
</div>

 

<div style="overflow: hidden;"><script>googletag.cmd.push(function() { var mappingInComments = googletag.sizeMapping().addSize([0, 0], [300,250]).addSize([336, 0], [[336,280],[300,250]]).build(); googletag.defineSlot('/283405443/PTP//news//article//in_comments', [300, 250], 'div-gpt-ad-in_comments-1').defineSizeMapping(mappingInComments).addService(googletag.pubads()); googletag.enableServices(); googletag.display('div-gpt-ad-in_comments-1');});</script></div>

 

<script type="text/javascript">
googletag.cmd.push(function() {
var mappingInComments = googletag.sizeMapping().addSize([0, 0], [300,250]).addSize([336, 0], [[336,280],[300,250]]).build();
googletag.defineSlot('/283405443/PTP//news//article//in_comments', [300, 250], 'div-gpt-ad-in_comments-1').defineSizeMapping(mappingInComments).addService(googletag.pubads());
googletag.enableServices();
googletag.display('div-gpt-ad-in_comments-1');
});
</script>

 

Reply
Page 2 / 2
Share:
Scroll to top