Created
November 27, 2020 10:12
-
-
Save yousufansa/e0079faa5561c8aa55752931e4b39ba8 to your computer and use it in GitHub Desktop.
Electro - Disable the Sticky Mobile Header on Checkout Page
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
| 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