Sidebars lose their sticky-ness when we add a custom ad block

Posted in: Newspaper
Post count: 7

Hi,

We are experiencing a weird issue with the sidebars on the article pages of https://irishgolfer.ie – so for example on https://irishgolfer.ie/latest-golf-news/2020/10/06/bridgestone-race-set-for-close-finish-at-rosapenna/

Basically, whenever we ad a an ad block with a custom ad shortcode to one of the sidebars they stop being sticky and no longer follow you down the page as you scroll. You can see on the example page a left sidebar that is sticky (no ad inserted) and a right side bar that has the ad inserted and is no longer sticky.

If we remove the ad, it is sticky again. It’s very strange!

We have been struggling with this issue for a number of weeks now so any help would be appreciated. Any ideas?

Post count: 35449

Hi,

I just checked your website and indeed the ads that you are using has a code that overwrite the column sticky, if you want I can take a look to hat ad code and maybe this can be make to work with sticky column.

Thank you!

Post count: 7

Of course! The ad script is inserted via a shortcode from the Ad Inserter plugin. This is the script:

<!– Half Page [async] –>
<script type=”text/javascript”>if (!window.AdButler){(function(){var s = document.createElement(“script”); s.async = true; s.type = “text/javascript”;s.src = ‘https://digital.matchplaymedia.ie/app.js&#8217;;var n = document.getElementsByTagName(“script”)[0]; n.parentNode.insertBefore(s, n);}());}</script>
<script type=”text/javascript”>
var AdButler = AdButler || {}; AdButler.ads = AdButler.ads || [];
var abkw = window.abkw || ”;
var plc356310 = window.plc356310 || 0;
document.write(‘<‘+’div id=”placement_356310_’+plc356310+'”></’+’div>’);
AdButler.ads.push({handler: function(opt){ AdButler.register(175632, 356310, [300,600], ‘placement_356310_’+opt.place, opt); }, opt: { place: plc356310++, keywords: abkw, domain: ‘digital.matchplaymedia.ie’, click:’CLICK_MACRO_PLACEHOLDER’ }});
</script>

Post count: 7

Hi, is this enough information or do you need more? Is there a way we can chat more frequently?

We purchased another 6 months of support especially so we could talk to support and get this fixed ASAP as it has had a negative effect on our advertising.

Many thanks!

Post count: 35449

Hi,

I just made a test using the code -> https://pastebin.com/JYZE1qbV and for me the sticky sidebar is still working https://i.imgur.com/bZkO5gV.png -> https://pastebin.com/JYZE1qbV -> https://i.imgur.com/EFweU2A.png
Please try like me and let me know the results!

Thank you!

Post count: 7

Hi,

No change when we use this code unfortunately.

We were previously experiencing another problem with the right sidebar, maybe it’s related: it started to appear under the left sidebar and leaving a blank space where it should have been on the right. We only managed to fix it with this custom CSS:

.td-pb-row:before, .td-pb-row:after {
display: inline!important;
content: ”;
}

Could this be preventing the sticky function from working? But if we remove this CSS, the right sidebar once again goes to the wrong place.

Thank you for your help

Post count: 35449

Hmm, so if you keep the css code and remove the adsense code the sticky sidebar start to work ? if yes then it can be other problems, please make a full backup and send us an email at contact@tagdiv.com and provide admin login and cPanel. We will take a look. Include a link to this topic in the email.
Thank you!

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