• Hi,
    I am using Shopisle theme and i want replace shopisle default search box with your plugin Yith Ajax search.

    Got this code somewhere

    <?php echo do_shortcode(‘[wpdreams_ajaxsearchpro id=1]’); ?>

    But i don’t know where to put or replace this in shop isle theme.

    please Help me doing so.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there ,
    In your theme template you can use this shortcode.

    echo do_shortcode('[yith_woocommerce_ajax_search]');

    Thread Starter sainirahul

    (@sainirahul)

    Thank you for your reply

    But can you please describe it a little bit more.

    Because i don’t know where to use this code
    Which file or line.

    The only file on theme isle related to search is “Search.php” with code of total 74 lines.
    The code

    <?php
    /**
    * The template for displaying search results pages.
    *
    * @package WordPress
    * @subpackage Shop Isle
    */

    get_header(); ?>

    <!– Wrapper start –>
    <div class=”main”>
    <!– Post single start –>
    <?php
    $shop_isle_header_image = get_header_image();
    if ( ! empty( $shop_isle_header_image ) ) :
    echo ‘<section class=”page-header-module module bg-dark” data-background=”‘ . esc_url( $shop_isle_header_image ) . ‘”>’;
    else :
    echo ‘<section class=”page-header-module module bg-dark”>’;
    endif;
    ?>
    <div class=”container”>
    <div class=”row”>
    <div class=”col-sm-6 col-sm-offset-3″>
    <h1 class=”module-title font-alt”>
    <?php
    printf(
    /* translators: s: Search term. */
    __( ‘Search Results for: %s’, ‘shop-isle’ ),
    ‘<span>’ . get_search_query() . ‘</span>’
    );
    ?>
    </h1>
    </div>
    </div>
    </div><!– .container –>
    <?php
    echo ‘</section>’;

    echo ‘<section class=”module”>’;
    ?>
    <div class=”container”>

    <div class=”row”>

    <!– Content column start –>
    <div class=”col-sm-8 shop-isle-page-content”>

    <?php if ( have_posts() ) : ?>

    <?php get_template_part( ‘loop’ ); ?>

    <?php else : ?>

    <?php get_template_part( ‘content’, ‘none’ ); ?>

    <?php endif; ?>

    </div><!– Content column end –>
    <!– Sidebar column start –>
    <div class=”col-sm-4 col-md-3 col-md-offset-1 sidebar”>

    <?php do_action( ‘shop_isle_sidebar’ ); ?>

    </div>
    <!– Sidebar column end –>
    </div><!– .row –>

    </div>
    </section>
    <!– Post single end –>

    <?php get_footer(); ?>

    Please let me know where to replace this code
    Thank you so much.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Replace Search Box’ is closed to new replies.