Home Forums Themes Support Claue Search products not displaying right

Viewing 1 reply thread
  • Author
    Posts
    • #5485
      Evy

      Since updating the theme, when doing a search on site for a product the products are listed in a blog format, showing the image, author, and date the product was created. How do I fix this to show as the other products display – grid style?

    • #5486

      Hi Evy,

      Thank you for choosing our theme.

      Did you modify core theme? You can add the code below input search field

      <input type="hidden" name="post_type" value="product">

      your search form code will be

      <form class="header__search w__100 dn pf" role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>" <?php jas_claue_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...', 'claue' ); ?>" />
      			<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 -->

      Best regards

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

Viewing 1 reply thread

You must be logged in to reply to this topic.