1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Divi page jumps/scrolls to iframe, how can I stop it?

Discussion in 'Free Divi Community Forum' started by SeanR, Apr 23, 2023.

  1. SeanR

    SeanR New Member

    Anyone know how I can get this page to stop scrolling to the iframe (shed inventory) section? I know it has something to do with the Zip Code pop-up that the iframe site uses...just curious if I can block that behavior?

    Here is the page in question: https://dev.andersonent.com/portable-buildings/

    Note: once you enter your zipcode into the box it no longer jumps down, so it's obviously caused by that iframe.

    I know this isn't directly Divi related since it's likely caused by the other site (found here: https://abcshedco.shedsuite.com/shop-inventory) but I figured I'd ask around. Thanks!
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade horizontal timeline design for your Divi site without using any plugins:View Demo
  2. jesseniavireo

    jesseniavireo New Member

    This sounds more like the iframe script taking control of the parent page than a Divi scroll setting. Since the jump stops after the postcode is submitted, I’d inspect the iframe’s JavaScript for a `focus()`, anchor/hash change, or `scrollIntoView()` call triggered when the postcode field loads. A quick test is to remove the iframe temporarily and see if the page remains at the expected position.

    If you don’t control the iframe content, CSS probably won’t be enough to prevent it. You could try loading the iframe after the page has settled, or intercepting the scroll position with JavaScript, although that can be a bit fragile if the iframe is changing its height dynamically. I’ve seen similar behaviour with embedded booking and inventory tools where the third-party script deliberately focuses its first input.