• Resolved ryan360

    (@ryan360)


    I have some scripts being initialized by a plugin that I don’t have control over unless I modify the plugin directly which is a no-no. It’s targeting elements that don’t exist in the DOM until the popup is created which is causing a javascript error. Is there a way to make it your plugin not use AJAX to load the content inside the modal? Right now I’ve reverted to manually firing the popup using MagnificPopup with my own CSS and JS but I would like to use your plugin for management in the future.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @ryan360,

    Sure, I will be happy to assist you in resolving your issue with the JavaScript error.

    Could you please create a test page with an active pop-up holding your custom script, so we can verify targeting elements that don’t exist in the DOM and are causing JavaScript errors?

    Based on the test page observations, I will be better able to conclude the optimal solution for your issue.

    You can update us here or follow us via our support platform at https://divimode.com/get-support/

    I will be looking forward to your response. Thank you.

    Hi @ryan360,

    I appreciate your patience. While waiting for your response, I escalated your issue further.

    As your issue appears to be related to a plugin’s core functionality, I have escalated your issue to our development team for a thorough investigation.

    Our team has determined that the issue you requested cannot be resolved using the Popups for Divi plugin. This is because the plugin is a lite version and only extends a limited number of features with respect to our pro version.

    As a workaround, you can switch to Divi Areas Pro, which will initialize the popup inside the regular body, making it accessible to third-party scripts, resolving your issue successfully.
    See here: https://divimode.com/divi-areas-pro/

    I hope this information helps. Please do not hesitate to ask any further questions. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Elements don’t exist in DOM until popup initialized’ is closed to new replies.