mercredi 29 juin 2016

How do I show product thumbnails in Woocommerce search results?

The default Woocommerce search input I'm using is:

<div class="postcode-search col-lg-4 col-lg-offset-4">

  <input type='textbox' name="s" class="form-control form-inline" style="display: inline;" id="item-search" value="<?php the_search_query();?>" placeholder="Enter your postcode"/>
  <span class="input-group-btn">
    <button class="item-search-btn"><span class="">find stores</span></button>
  </span>
  <?php
    if ( function_exists( 'woocommerce_product_search' ) ) {
      echo woocommerce_product_search( array( 'limit' => 40 ) );
    }
  ?>

</div>

The problem I'm having is that the results page displays the text and the 'leave a comment' link below: enter image description here

Whereas I want the results to be displayed with the thumbnail as such: enter image description here

Does anyone know how I can achieve this result? All suggestions welcome and thank you in advance!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire