Added ads to bottom of article – massive blank space under ad

Posted in: Newspaper
Post count: 3

I added this ad code under “article bottom ad” and after the advertisement, there is a massive blank space. When I remove the ad, this goes away. What’s going on here?

<div id="contentad183971"></div>
<script type="text/javascript">
(function(d) {
var params =
{
id: "edb395d9-7c7d-4167-9f94-c6fa89bc27b1",
d: "cHJvZm9vdGJhbGxzcG90LmNvbQ==",
wid: "183971",
cb: (new Date()).getTime()
};
var qs = Object.keys(params).reduce(function(a,k){a.push(k+'='+encodeURIComponent(params[k]));return a},[]).join(String.fromCharCode(38));
var s = d.createElement('script');s.type='text/javascript';s.async=true;
var p = 'https:' == document.location.protocol ? 'https' : 'http';
s.src = p + "://api.content-ad.net/Scripts/widget2.aspx?" + qs;
d.getElementById("contentad183971").appendChild(s);
})(document);
</script>

Post count: 20688

Hi,

That means the the code is somehow creating that space, if removing it seems to resolve the problem. You can use the browser inspector to identify where the space is coming from exactly
https://forum.tagdiv.com/create-custom-code-using-the-browsers-inspector/
Or provide a link to your website where this is happening, so we can inspect it.

Thanks

Post count: 3

The code didn’t cause the space on previous themes, however. So I’m wondering if it’s clashing with some other code somewhere or something. I couldn’t figure it out with inspector.

You can see this issue happening here: http://profootballspot.com/chicago-bears-predictions-wide-receivers/ and all other articles on this website.

Any help would be great!

Post count: 20688

Hi,

Please try the code provided below, enter it in Theme panel->Custom CSS section. It should remove the space that is created by the article bottom ad
https://www.screencast.com/t/WdxX9TDUW

.td-a-rec-id-content_bottom img {
width:auto;
}

Thanks

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