• Resolved leorulz

    (@leorulz)


    hi, i have added the following code to the bottom of theme’s functions.php

    add_filter( ‘get_search_form’, ‘aws_search_form’ );

    function aws_search_form( $form ) {
    return do_shortcode( ‘[aws_search_form]’ );
    }

    however it’s still not working. I am using Pharmacy template from themeforest. Could help?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    If you want to replace theme default search form in the header with plugin search form than open pharmacy/header.php file, find lines

    <form role="search" method="get" class="searchform" action="<?php echo home_url( '/' ); ?>">
                                        <div class="wpo-search input-group">
                                            <input name="s" maxlength="40" class="form-control input-lg input-search" type="text" size="20" placeholder="<?php echo __('Search...', 'pharmacy'); ?>">
                                            <span class="input-group-addon input-large btn-search">
                                                <input type="submit" class="fa" value="" />
                                                <?php if( WPO_WOOCOMMERCE_ACTIVED ) { ?>
                                                    <input type="hidden" name="post_type" value="product" />
                                                <?php } ?>
                                            </span>
                                        </div>
                                    </form>

    and replace with

    <?php echo do_shortcode( '[aws_search_form]' ); ?>

    Maybe you will be also need to change some css rules.

    THANK YOU! This worked perfectly and now I have the best search in my new store!

    thank you! this helped me as well

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘replace default search with AWS’ is closed to new replies.