Quantcast
Channel: WordPress.org Forums » [Contact Form 7] Support
Viewing all articles
Browse latest Browse all 49500

verify on "[Plugin: Contact Form 7] How to make Validation Errors NOT disappear on hover."

$
0
0

Hi, I believe you can override the function in your theme. In my case, I insert the Form shortcode by do_shortode() function, so I insert the overriden function directly after it and it works. So in my footer.php, the block of code looks like this:

<?php echo do_shortcode('[contact-form-7 id="8" title="Footer Contact Form"]'); ?>

<script type="text/javascript">
	jQuery(function($) {
		$.fn.wpcf7NotValidTip = function(message) {
			return this.each(function() {
				var into = $(this);
				into.append('<span class="wpcf7-not-valid-tip">' + message + '</span>');
				into.find(':input').focus(function() {
					into.find('.wpcf7-not-valid-tip').not(':hidden').hide();
				});
			});
		};
	});
</script>

Hope it helps.


Viewing all articles
Browse latest Browse all 49500

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>