Slider Modal with Contact Form 7 Fix

This article will show you how to fix the Contact Form 7 when it is used in a Slider Modal.

This error will show if a Contact Form 7 is used in a Slider Modal:

To fix this, insert the custom JS code below into the slider modal.

jQuery( 'div.wpcf7 > form' ).each( function() {
   var $form = jQuery( this );
   wpcf7.initForm( $form );
   if ( wpcf7.cached ) {
      wpcf7.refill( $form );
   }
});
Slider Modal with Contact Form 7 Fix

The Author

KC

Strength does not come from winning. Your struggles develop your strengths. When you go through hardships and decide not to surrender, that is strength.

Liked this Post?
Please Share it!

Leave a Reply

Your email address will not be published. Required fields are marked *