Solution for hcaptcha support in Elementor Pro Popups
-
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.phpThe JS file with the code was already available in the plugin.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Solution for hcaptcha support in Elementor Pro Popups’ is closed to new replies.