Help!

Posted in: Newspaper
Post count: 58

Hi Guys,

Iam trying to load a custom header ad to the top of this page, but since i couldn’t figure out how to remove the ad location used theme as a global location header i ended up just hiding it via CSS, which i guess is no big deal if thats what i had to do, however, what i want to avoid is the bouncing around when the page loads.
Could you help

https://mycalgary.com/communities/calgary/sw/aspen/

Post count: 35449

Hi,

I do not think that hiding the ads necessary, for the ads that appear in header theme you can use this -> https://www.screencast.com/t/zdbzOCkt
Header ads -> https://forum.tagdiv.com/header-ads-adsense/

Thank you!

Post count: 58

Hi Calin,
Sorry, I did more work on that page, and i think the Ad is not whats causing the page to bounce around on page load, but an iframe inserted to this page. Do you have any tips on how to stop that behaviour? I tried using a lazy loading script and no luck, i also tried:
// prevent scrollTo() from jumping to iframes
var originalScrollTo = window.scrollTo;

window.scrollTo = function scrollTo (x, y) {
if (y === 0) {
originalScrollTo.call(this, x, y);
}
}

But the page still jumps when u first load it, see it here:
https://mycalgary.com/communities/calgary/sw/aspen/

Post count: 35449

Hi,

Please make sure that you do not have a plugin conflict, please deactivate all plugins except tagDiv Composer, clear all cache and try again.

If this is happen only on this page, is possible to have some elements/codes/shotcodes that do that jump to your graphics.

Thank you!

Post count: 58

Hi Calin,

My issue is with the iframe placed lower in the page. I triggers the page to jump/flickr.
Can you advise on how to get rid of this and force the page not to jump positions?

Post count: 35449

Hi,

Please try the JavaScript: Force page position to top of page on browser refresh from this article ->https://techearl.com/javascript/javascript-force-page-position-to-top-of-page-on-browser-refresh
Set the code in custom java-script -> https://www.screencast.com/t/b2DCWP7GH

Hope this will help you!
Thanks.

Post count: 58

Hi Calin,

I tried both Java and JQuery and the page still scrolls to iframe and bounces.

Post count: 35449

Hi,

Just to make sure please deactivate all non theme plugins, clear all cache and try again, is possible to be a plugin conflict ( plugin that provide you that iframe ).

If the problem is still there please remove the iframe from page, clear all cache and see if the problem is still there.

Thank you!

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