Conj Lite theme

This article explains how to replace the native search bar in the Conj theme by mypreview.

Replacing is based on editing the Conj child theme. Make sure you have installed the Conj child theme. If not, install it.

Replacing search bar

Open functions.php file in the child theme and add there following code:

/**
 * Replace Conj search with AJAX Serch for WooCommerce
 */
if ( ! function_exists( 'conj_lite_wc_search_field' ) ) {
    function conj_lite_wc_search_field() {
    ?>
        <div class="site-header__search">
            <?php echo do_shortcode( '[wcas-search-form]' ); ?>
        </div>
    <?php
    }
}