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

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

$
0
0

@verify: good idea. My developer also did something similar.

@Innovnate: you can put it at the end of the template file (of that page).
For example, if that page is contact, you can look for template page-contact.php or something similar and place the code there.

This is my dev's code:

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

Viewing all articles
Browse latest Browse all 49500

Trending Articles



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