Home › Forums › Themes Support › Gecko › search by tags or SKU
- This topic has 5 replies, 2 voices, and was last updated 6 years, 7 months ago by Harry.
-
AuthorPosts
-
-
May 17, 2018 at 3:25 pm #20635
Hi,
if I want to modify the search in header to search about tags or sku,
is this possible
-
May 17, 2018 at 6:35 pm #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 -
May 20, 2018 at 4:08 pm #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 –> -
May 20, 2018 at 10:49 pm #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 -
May 28, 2018 at 4:18 pm #20980This reply has been marked as private.
-
May 28, 2018 at 10:41 pm #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
-
-
AuthorPosts
You must be logged in to reply to this topic.