Make wpcf7-response-output message visible after submit
-
After submitting a form, the page tends to load with the top of the window far above the response message. The response message is not visible on the screen without scrolling, so many people don’t know that it’s there, and can’t tell what happened.
I’d like to know some of the ways that people solve this problem, or if anyone has suggestions.
I can use some javascript to accomplish what I want by scrolling the page after submission reload, but if there is a better way, that would be great.
Adjust the first part of the “if” statement to suit your situation:
// Contact Form 7 scroll to message after submit jQuery(document).ready(function ( $ ) { if ( ($('body').hasClass('section-contact')) && ($('.wpcf7-response-output').length) ) { $('html, body').animate({ scrollTop: $(".wpcf7-response-output").offset().top - 100 }, 1000); }; });
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Make wpcf7-response-output message visible after submit’ is closed to new replies.