This article explains how to replace the native search bar in the Arrival Store theme by wpoperations.
Arrival Store is child theme of Arrival.
To replace the search bars, add the following code to your website:
/**
* 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
});
ⓘLearn how to add this snippet to your WordPress.