Skip to content

Instantly share code, notes, and snippets.

@rutger1140
Created February 20, 2013 10:55
Show Gist options
  • Save rutger1140/4994751 to your computer and use it in GitHub Desktop.
Save rutger1140/4994751 to your computer and use it in GitHub Desktop.
Gravity Forms hook - disable auto scrolling to anchor after submit
// Gravity Forms anchor - disable auto scrolling of forms
add_filter("gform_confirmation_anchor", create_function("","return false;"));
Copy link

ghost commented Jun 8, 2019

I'm new to this PHP and have been given a website project. How do I include this code? I've put it between php tags to no avail!

I've done a contact page on a separate php file which is called using the 'include' line and the page sends mail messages but after the submit button is clicked, the page flies up to the top.....

@rutger1140
Copy link
Author

I'm new to this PHP and have been given a website project. How do I include this code? I've put it between php tags to no avail!

I've done a contact page on a separate php file which is called using the 'include' line and the page sends mail messages but after the submit button is clicked, the page flies up to the top.....

Put it in your functions.php file and you should be good to go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment