2
votes
Accepted
Contact form 7 Hide response messages after 5 seconds
you can use below code to hide message
// Contact Form 7 submit event fire
document.addEventListener('wpcf7submit', function(event) {
setTimeout(function() {
jQuery('form.wpcf7-form')....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
ajax × 2585jquery × 579
php × 469
javascript × 291
plugins × 262
plugin-development × 244
functions × 172
wp-query × 148
forms × 111
posts × 97
custom-post-types × 84
woocommerce-offtopic × 79
theme-development × 76
json × 75
wp-admin × 72
loop × 64
filters × 57
shortcode × 56
rest-api × 56
hooks × 55
customization × 53
nonce × 53
actions × 49
pagination × 48
search × 48