Created
February 20, 2013 10:55
-
-
Save rutger1140/4994751 to your computer and use it in GitHub Desktop.
Gravity Forms hook - disable auto scrolling to anchor after submit
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 anchor - disable auto scrolling of forms | |
add_filter("gform_confirmation_anchor", create_function("","return false;")); |
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
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.....