• Resolved sidekickit

    (@ecommany)


    For a website we want to use the hcaptcha widget in Elementor Pro Forms widget in a Elementor Pro popup. But somehow the hcaptcha widget was not loaded.

    After some debugging it seems that during load hcatptcha is added to the forms that are found in the sourcecode. The forms in popups are only available in the sourcecode when the popups are shown.

    To solve the problem I have added the code below:

    wp_enqueue_script(
        'hcaptcha-elementor-pro-frontend',
        HCAPTCHA_URL . '/assets/js/hcaptcha-elementor-pro-frontend.js',
        ['hcaptcha', 'jquery'],
        HCAPTCHA_VERSION,
        true
    );

    To the function print_footer_scripts() after row 183 in the file src/php/Main.php

    The JS file with the code was already available in the plugin.

    • This topic was modified 3 years, 4 months ago by sidekickit.
Viewing 1 replies (of 1 total)
  • Plugin Contributor kaggdesign

    (@kaggdesign)

    Thank you for the proposal, it works. I have added it to 1.13.4, which will be released soon.

Viewing 1 replies (of 1 total)
  • The topic ‘Solution for hcaptcha support in Elementor Pro Popups’ is closed to new replies.