Hi @rapadura,
Long story short, Custom Contact Forms is wiping our ReCaptcha. This snippet will fix it:
// Fix a plugin conflict w/ Custom Contact Form plugin that is breaking our ReCAPTCHA.
add_filter( 'yikes-mailchimp-after-form', 'yikes_mailchimp_fix_recaptcha_conflict', 10, 2 );
function yikes_mailchimp_fix_recaptcha_conflict( $form_id, $form_data ) {
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
// Check if reCaptcha is active and the Custom Contact Form plugin is active
if ( is_plugin_active( 'custom-contact-forms/custom-contact-forms.php' ) && get_option( 'yikes-mc-recaptcha-status' , '' ) == '1' ) {
?>
<script type="text/javascript">
if ( typeof jQuery === 'function' ) {
jQuery( document ).ready( function() {
if ( typeof renderReCaptchaCallback === 'function' ) {
var x = 0;
var interval = setInterval( function() {
if ( jQuery( '.g-recaptcha' ).length > 0 ) {
renderReCaptchaCallback();
clearInterval( interval );
}
// Sanity check
x++;
if ( x > 100 ) {
clearInterval( interval );
}
}, 1000 );
}
});
}
</script>
<?php
}
}
Are you familiar with adding custom filter functions? These should be added to your child theme’s functions.php, your theme’s functions.php, or added via a plugin like My Custom Functions (https://www.ads-software.com/plugins/my-custom-functions/). Be careful when editing your theme’s files as a mistake can break your website.
Cheers,
Kevin.