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
};
Buscar en la base de conocimiento
Script POPUP elementor con CF7
¿Le ha resultado útil este artículo?
Articulos relacionados
-
Shortcode Toolset
[types termmeta="NOMBRE_CAMPO_DE_TERMINO"][/types]...