Plugin Author
ILLID
(@mihail-barinov)
Hello,
Please read this article – https://advanced-woo-search.com/guide/search-form/
So, if you want to replace standard theme search form you need to use build-in shortcode.
If you tell me your theme name I can help you with this.
Thanks!
Hello,
hanks for your answer.
I have tried it and it works fine, just that I had no clue where to find the ID and just used “1” and it worked.
But I was looking for a more elegent solution for function.php and found it:
remove_action( 'storefront_header', 'storefront_product_search' );
add_action( 'storefront_header', 'position_aws_in_header', 40 );
function position_aws_in_header( ) {
echo do_shortcode( '[aws_search_form id="1"]' );
}
Thank you