Skip to content

Instantly share code, notes, and snippets.

@ibndawood
Created November 4, 2019 14:12
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/591daff029312b5155744e507f963447 to your computer and use it in GitHub Desktop.
Save ibndawood/591daff029312b5155744e507f963447 to your computer and use it in GitHub Desktop.
#369
add_action( 'init', 'electro_aws_search_form_hooks' );
if ( ! function_exists( 'electro_aws_search_form_hooks' ) ) {
function electro_aws_search_form_hooks() {
add_filter( 'electro_use_third_party_navbar_search', '__return_true', 10 );
add_action( 'electro_navbar_search_third_party', 'electro_aws_search_form', 10 );
}
}
if ( ! function_exists( 'electro_aws_search_form' ) ) {
function electro_aws_search_form() {
if ( is_woocommerce_activated() ) : ?>
<div class="navbar-search"><?php
aws_get_search_form();
?></div>
<?php
endif;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment