This article explains how to replace the native search bar in the Arrival Store theme by wpoperations.
Arrival Store is child theme of Arrival.
FiboSearch plugin features built-in integration with this theme. It means you can replace the default search bars by selecting a single checkbox.
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
});
/**
* 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
});
/** * 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.