Created
December 20, 2019 05:50
-
-
Save ibndawood/76893f8abb3cbeabfbed3be5af7cf0eb to your computer and use it in GitHub Desktop.
Electro v2 - Disable Footer Widgets in Home page only
This file contains 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
add_action( 'electro_before_footer_v2', 'ec_child_disable_footer_in_home', 30 ); | |
function ec_child_disable_footer_in_home() { | |
if ( is_front_page() ) { | |
remove_action( 'electro_footer_v2', 'electro_footer_widgets_v2', 10 ); | |
remove_action( 'electro_footer_v2', 'electro_footer_divider_v2', 20 ); | |
remove_action( 'electro_footer_v2', 'electro_footer_bottom_widgets_v2', 30 ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment