• Resolved MrFent37

    (@mrfent37)


    I am working on a website built with Elementor. I have my popup trigger set to:

    .quote-popup

    And then I apply this class to an Elementor button, which triggers the popup as it should. However, now when I have the Elementor builder open, if I try to click on the button to edit other settings, it opens the settings but then also triggers the popup. If I close the popup it also closes the settings. So I’m trying to see if there is a way to disable the popup from being triggered if the builder is open. When Elementor builder is open, it add the following body class:

    elementor-editor-active

    So I tried modifying my popup trigger to:

    body:not(.elementor-editor-active) .quote-popup

    I would have thought that this would prevent the popup from opening, but it still opens anyway. Any thoughts?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Bel

    (@belimperial)

    Hi @mrfent37

    Thank you for reaching out.

    We have a code that can help you disable the popup when you open the Elementor editor.

    Can you add it to your child theme’s functions.php file?

    Here’s the Gist link: https://gist.github.com/marklchaves/9202af5624681b86ce710f2e09a18c0b

    You can use the Code Snippets plugin in case you don’t have a child theme.

    Please refer to this link:

    https://docs.wppopupmaker.com/article/552-getting-started-with-custom-php

    Here’s a demo when using the code from the Gist link:

    https://share.wppopupmaker.com/d5u9Zjq7

    Please take these steps as well before checking the page :

    • Clear out any browser, WordPress, server, database, and CDN <u>caches</u> you have.
    • Retest using a private or <u>incognito</u> window with no active browser extensions.

    We hope that helps. Could you please give it a try, and let us know how it goes?

    Thank you!

    Thread Starter MrFent37

    (@mrfent37)

    Thank you, but is there any reason why using the :not() selector doesn’t work?

    Bel

    (@belimperial)

    Hi @mrfent37

    It depends on how you coded it. We are not certain why the :not() selector didn’t work.

    Can you share your custom code?

    It would also be best to use the custom code suggested removing the popup on the Elementor editor for a clean result.

    We hope that helps. Let us know if you have any questions.

    Bel

    (@belimperial)

    Hi @mrfent37

    We are going to mark this as resolved, as we haven’t heard from you in a while.

    Feel free to create a new thread if you have any other questions.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable Popup when page builder is active’ is closed to new replies.