Home Forums Themes Support Gecko search by tags or SKU

Viewing 5 reply threads
  • Author
    Posts
    • #20635

      Hi,

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

      is this possible

    • #20648

      Hi,

      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

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #20732

      Hi

      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 –>

    • #20736

      Hi,

      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">
      		</div>
      		<a id="sf-close" class="pa" href="#"><i class="pe-7s-close"></i></a>
      	</form><!-- #header__search -->

      with

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

      Best regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

    • #20980
      This reply has been marked as private.
    • #21000

      Hi,

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

      below the row contain menu

      Best regards

      Harry
      Premium Wordpress themes and plugins, Best WooCommerce theme https://themeforest.net/user/janstudio/portfolio?ref=janstudio

Viewing 5 reply threads

You must be logged in to reply to this topic.