Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Created December 20, 2019 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibndawood/76893f8abb3cbeabfbed3be5af7cf0eb to your computer and use it in GitHub Desktop.
Save ibndawood/76893f8abb3cbeabfbed3be5af7cf0eb to your computer and use it in GitHub Desktop.
Electro v2 - Disable Footer Widgets in Home page only
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