• Resolved thalken

    (@thalken)


    I tried many ways to replace the default search engine with Woo Search but failed. Please guide me how to replace it. Tks you !!!

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

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

    (@mihail-barinov)

    Hello,

    Please try to add this code to your theme functions.php file

    add_filter( 'get_search_form', 'aws_search_form' );
    add_filter( 'get_product_search_form', 'aws_search_form' );
    
    function aws_search_form( $form ) {
        return do_shortcode( '[aws_search_form]' );
    }
    Thread Starter thalken

    (@thalken)

    Thank you bro! I tried but still not successful, I think my theme is experiencing something trouble to search live.

    Plugin Author ILLID

    (@mihail-barinov)

    I look on theme code.

    The only way to add AWS search form is to open futeshop/framework/includes/theme-function.php file, find function called

    kuteshop_search_form

    and replace all its content with

    <div class="block-search" style="width: 470px;">
        <?php echo do_shortcode( '[aws_search_form]' ); ?>
    </div>
    Thread Starter thalken

    (@thalken)

    Thank you so much ILLID !!! It has been works and works very perfectly. You’re great man! Because support very enthusiasm for me and everybody.

    Plugin Author ILLID

    (@mihail-barinov)

    No problem.
    Glad to help you.

    Thread Starter thalken

    (@thalken)

    Thanks, ILLID! Plugin has been active, but there is a problem when using on mobile, search bar is too wide so not friendly on mobile device. I tried edit some code in fushion-themes, but the search bar too small on the PC.

    <div class=”block-search <?php echo esc_attr( $block_search_class ); ?>”>
    <?php echo do_shortcode( ‘[aws_search_form]’ ); ?>
    </div>

    How do I fix it???

    I want the search bar to be in width from “all categories” to the “search button”. Or better, replace the inner box “I’m search for” but still keep the “All Categories” and “search buttons”.

    Demo: https://kuteshop.kutethemes.net/

    • This reply was modified 6 years, 9 months ago by thalken.
    • This reply was modified 6 years, 9 months ago by thalken.
    • This reply was modified 6 years, 9 months ago by thalken.
    Plugin Author ILLID

    (@mihail-barinov)

    I found one style in your theme css file.

    @media (max-width: 767px) {
    .header-control .block-search:not(.kuteshop-dropdown) {
        display: block;
    }
    }

    and replace it with

    @media (max-width: 767px) {
    .header-control .block-search:not(.kuteshop-dropdown) {
        display: block;
        width: 100% !important;
    }
    }
    Thread Starter thalken

    (@thalken)

    Once again thanks you so much ILLID! Search bar has been fix and look so nice on mobile device.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Replacing default search in KuteShop’ is closed to new replies.