Remove sticky scrolling payment section WooCommerce

The sticky payment section in the Storefront Theme can be a little buggy. Sometimes it’s best to remove it.
Here is how to make WooCommerce payment section non sticky. Just drop the code into your child themes functions.php

[cc lang=”php”]
// Removes the sticky scrolling payment section on WooCommerce checkout
function wpsnippets_remove_sticky_wc_payment() {
wp_deregister_script( ‘storefront-sticky-payment’);
}
add_action( ‘wp_enqueue_scripts’, ‘wpsnippets_remove_sticky_wc_payment’ , 90 );
[/cc]

Leave a Reply

Your email address will not be published. Required fields are marked *

Up Next:

Uncheck "Ship to different address" in WooCommerce by Default

Uncheck "Ship to different address" in WooCommerce by Default