• Hi,

    For some reason, when i setup the section with an ID, it is removed from page DOM on page load! and I only see the HTML comment that there was a section here..

    Any idea??

Viewing 1 replies (of 1 total)
  • Plugin Contributor Philipp Stracker

    (@strackerphil-1)

    Hi @tinycoder

    this is correct and intended.

    When the page loads, the Popups for Divi plugin scans the page for valid popups. Once it finds a popup in the source code, it removes it from DOM and stores it in a detached container.

    Once a popup is displayed, it is attached again to DOM, but at the very end of the body tag.

    There are a few reasons for this behavior, most important ones:

    – You can trigger a popup from inside a popup. This means the new popup must come later in the DOM structure (so the z-index is correct). I.e. the plugin needs to re-structure the DOM in order to display popups
    – Some pseudo selectors like “:first-child” and “:last-child” are confused when the popup stays hidden in the DOM. This caused some layout issues and therefore the popups are detached instantly on page load.
    – Since version 1.2.0 the popups support Divi Animations. When the popup stays in the DOM, Divi will “animate” it and show it, like a normal section. The only way to ensure that Divi does not accidentally trigger the animation is to remove the popup from DOM.

    Let me know, in case there’s anything unclear or you need help to get the popups working
    Philipp ??

Viewing 1 replies (of 1 total)
  • The topic ‘Section is removed from dom on page load’ is closed to new replies.