Last active
October 20, 2015 08:55
-
-
Save alexphelps/a48663ef3a189c1b3878 to your computer and use it in GitHub Desktop.
Gravity Forms Validation Scroll Fix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add this to your theme or wherever you feel comfortable. | |
* It will return the user to the form on the page when | |
* validation fails. | |
**/ | |
if ( is_plugin_active( 'gravityforms/gravityforms.php') ){ | |
add_filter( 'gform_confirmation_anchor', '__return_true' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment