• Resolved Wordaspect

    (@wordaspect)


    Hi,
    how is it possible to replace the standard site search by Advanced Woo Search?
    Thanks.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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!

    Thread Starter Wordaspect

    (@wordaspect)

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Replacing site-search’ is closed to new replies.