Skip to content

Instantly share code, notes, and snippets.

@patrickgilmour
Last active August 30, 2015 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickgilmour/92e887bc80d8629cb282 to your computer and use it in GitHub Desktop.
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
/**
* 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