Home Forums Themes Support Gecko search by tags or SKU

This topic contains 5 replies, has 2 voices, and was last updated by  Harry 2 months, 3 weeks ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #20635


    if I want to modify the search in header to search about tags or sku,

    is this possible



    Please use this plugin https://wordpress.org/plugins/advanced-woo-search/ copy file layout-x.php as the header layout running on your site from gecko > views > header to gecko-child > views > header

    And replace search form with below code

    echo do_shortcode( '[aws_search_form]' );

    Best regards



    which part in this code, it should be change

    <form class=”header__search w__100 dn pf” role=”search” method=”get” action=”<?php echo esc_url( home_url( ‘/’ ) ); ?>” <?php jas_gecko_schema_metadata( array( ‘context’ => ‘search_form’ ) ); ?>>

    <input class=”w__100 jas-ajax-search” type=”text” name=”s” placeholder=”<?php echo esc_html__( ‘Search for…’, ‘gecko’ ); ?>” />
    <input type=”hidden” name=”post_type” value=”product”>

    <i class=”pe-7s-close”></i>
    </form><!– #header__search –>



    Please replace

    <form class="header__search w__100 dn pf" role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>" <?php jas_gecko_schema_metadata( array( 'context' => 'search_form' ) ); ?>>
    		<div class="pa">
    			<input class="w__100 jas-ajax-search" type="text" name="s" placeholder="<?php echo esc_html__( 'Search for...', 'gecko' ); ?>" />
    			<input type="hidden" name="post_type" value="product">
    		<a id="sf-close" class="pa" href="#"><i class="pe-7s-close"></i></a>
    	</form><!-- #header__search -->


    <?php echo do_shortcode( '[aws_search_form]' ); ?>

    Best regards

    This reply has been marked as private.


    Please create new
    <div class="jas-row"><?php echo do_shortcode( '[aws_search_form]' ); ?></div>

    below the row contain menu

    Best regards

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.