[Resolved] Ultra search results

  • Author
    Posts
  • #15436

    rothster
    Participant

    Hello,

    I am running an ecommerce site (woocommerce) using the Ultra there (love it by the way).

    I am interested in having the search results page not only come back with the product’s not only the products title and description but also the image of the product. Is there a way to accomplish this?

    Thanks!

    #15446

    Andrew Misplon
    Keymaster

    Hi, thanks for posting your question, sorry I wasn’t able to reply sooner.

    Unfortunately, it isn’t possible to add featured images to search results without using a child theme and some customization. It’s a small custom development job. If that’s something you’re able to do and would like some advice, please, let me know and I’ll list the steps you’d need to take.

    #15447

    rothster
    Participant

    Thanks for your response!

    I am already using a child theme – mostly to add a banner as part of the header – so yes, thank you!! I would like the list of steps…

    Thanks!

    #15448

    Andrew Misplon
    Keymaster

    Hi. You could copy content-search.php from the parent theme and paste a copy of that file into your child theme. Above <div class="entry-summary"> you could insert:

    <div class="entry-thumbnail">
    	<?php the_post_thumbnail(); ?>
    </div>

    You’d then need to style the featured image. Something like the following in your child stylesheet or Appearance > Custom CSS or Customize > Additional CSS:

    @media (min-width: 780px) {
    	.search-results .entry-thumbnail {
    		float: left;
    		max-width: 250px;
    		padding-right: 30px;
    	}
    
    	.search-results .entry-summary {
    		float: left;
    	}
    
    	.search-results .entry-footer {
    		clear: both;
    	}
    }
    #15450

    rothster
    Participant

    Works like a champ!!

    Thanks!!!!

    #15451

    Andrew Misplon
    Keymaster

    Glad to hear you’re making progress 🙂

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

You must be logged in to reply to this topic.

Scroll to top