Created
March 16, 2017 14:31
-
-
Save jaredatch/e796e70d22395abc3c0eab2fa778c248 to your computer and use it in GitHub Desktop.
WPForms disable multipage scroll
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
<?php | |
/** | |
* Disable multipage scroll | |
* | |
*/ | |
function wpf_disable_multipage_scroll() { | |
?> | |
<script type="text/javascript">window.wpforms_pageScroll = false;</script> | |
<?php | |
} | |
add_action( 'wpforms_wp_footer', 'wpf_disable_multipage_scroll' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment