• Hello,

    I would like to open a pop up when clicking on the image of a Divi Carousel, not only on the button. I created this script, but it does not work properly.

    <script>
    jQuery(‘#pop-eric-zimmerman-1’).on(‘click’, function() {
    DiviPopup.openPopup(‘#eric-zimmerman-1’)
    });
    </script>

    #pop-eric-zimmerman-1 is the id of the carousel item, and #eric-zimmerman-1 is the id for the pop-up.
    How can I do it?

    Thank you.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @laia2595 ??

    Apologize for the inconvenience!
    I think that it can work without any script. All you have to do is to add a CSS class to the slide that should trigger the Popup: “show-popup-<the_id>”, for example “show-popup-contact-form”.

    I hope it will solve the problem. Please get back to me, in case of any query.

    Regards,
    Syed

    Thread Starter laia2595

    (@laia2595)

    Hello @ausyed ??

    Thank you for your fast answer.

    IT WORKS!!! I did not know it could be done with CSS class.
    Thank you very much for your help.
    Bests regards,

    Laia

    ausyed

    (@ausyed)

    Hello @laia2595,

    Glad it worked and You are always welcome. Feel free to get back to me, in-case of any query.

    Regards,
    Syed

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Open Pop up when clicking on Divi Carousel image’ is closed to new replies.