Skip to content

Instantly share code, notes, and snippets.

@xlplugins
Created July 7, 2023 11:35
Show Gist options
  • Save xlplugins/19a93a86a4d7a7a08106ae2e49185d78 to your computer and use it in GitHub Desktop.
Save xlplugins/19a93a86a4d7a7a08106ae2e49185d78 to your computer and use it in GitHub Desktop.
disabled aero scrolling
add_action( 'wfacp_after_form', function () {
?>
<script>
window.addEventListener('bwf_checkout_js_load',function (){
jQuery.wfacp_step_scrolling= function (scrollElement) {};
wfacp_frontend.hooks.addFilter('wfacp_switch_steps_need_update_checkout',function (){
return false;
});
});
</script>
<?php
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment