Conj Lite theme

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

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

Open the functions.php file in the child theme and add the 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
    }
}