Skip to content

Instantly share code, notes, and snippets.

@yousufansa
Created November 27, 2020 10:12
Show Gist options
  • Select an option

  • Save yousufansa/e0079faa5561c8aa55752931e4b39ba8 to your computer and use it in GitHub Desktop.

Select an option

Save yousufansa/e0079faa5561c8aa55752931e4b39ba8 to your computer and use it in GitHub Desktop.
Electro - Disable the Sticky Mobile Header on Checkout Page
if( ! function_exists( 'ec_child_disable_handheld_header_sticky' ) ) {
function ec_child_disable_handheld_header_sticky( $sticky_header ) {
if( function_exists( 'is_checkout' ) && is_checkout() ) {
return false;
}
return $sticky_header;
}
}
add_filter( 'electro_enable_hh_sticky_header', 'ec_child_disable_handheld_header_sticky', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment