Arrival Store theme

This article explains how to replace the native search bar in the Arrival Store theme by wpoperations.

Arrival Store is child theme of Arrival.

Open functions.php file in your child theme and add the following code at the beginning of this file after tag <?php.

/**
 * AJAX Search for WooCommerce - integration
 *
 */
if(!function_exists ('arrival_store_product_search')){
    function arrival_store_product_search(){
        echo do_shortcode('[wcas-search-form]');
    }
}
add_action('wp_head', function(){
    ?>
    <style>
        .product-search {
            width: 100%;
        }
    </style>
    <?php
});