Last active
August 30, 2015 20:45
-
-
Save patrickgilmour/92e887bc80d8629cb282 to your computer and use it in GitHub Desktop.
On submitting a Gravity Form (with id of 25), the response page will jump to top of the page minus 1 px
This file contains hidden or 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
/** | |
* Gravity Forms - scroll to the top of page on form submit | |
* | |
* Returns a value of 1px from the top. | |
*/ | |
add_filter( 'gform_confirmation_anchor_25', function() { | |
return 1; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment