Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Created May 3, 2017 12:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibndawood/f695b49c63c37f38bc83d782245eb031 to your computer and use it in GitHub Desktop.
Save ibndawood/f695b49c63c37f38bc83d782245eb031 to your computer and use it in GitHub Desktop.
Electro - Remove search bar from header v1 and v3
add_action( 'init', 'ec_child_remove_navbar_search' );
function ec_child_remove_navbar_search() {
remove_action( 'electro_header_v3', 'electro_navbar_search', 20 );
remove_action( 'electro_header_v1', 'electro_navbar_search', 20 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment