Script POPUP elementor con CF7

INSERTAR CÓDIGO DIRECTO

jQuery(document).ready(function( $ ){
   jQuery( 'body' ).on( 'click', function () {
      jQuery( 'form.wpcf7-form:not(.elementor)' ).each( function ( index ) {
         wpcf7.initForm( jQuery( this ) );
         jQuery( this ).addClass( 'elementor' );
      });
   });
});




INSERTAR CÓDIGO EN FOOTER DESDE FUNCTIONS.PHP

add_action('wp_footer', 'script_elementor_contactform7');
function script_elementor_contactform7(){
?>
<script>
jQuery(document).ready(function( $ ){
   jQuery( 'body' ).on( 'click', function () {
      jQuery( 'form.wpcf7-form:not(.elementor)' ).each( function ( index ) {
         wpcf7.initForm( jQuery( this ) );
         jQuery( this ).addClass( 'elementor' );
      });
   });
});
</script>
<?php
};

¿Le ha resultado útil este artículo?