- This topic has 5 replies, 2 voices, and was last updated 3 years, 8 months ago by Andrew Misplon.
Tagged: ultra search results
- AuthorPosts
- March 3, 2021 at 8:43 pm #15436
rothsterParticipantHello,
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!
March 9, 2021 at 11:51 am #15446
Andrew MisplonKeymasterHi, 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.
March 9, 2021 at 1:45 pm #15447
rothsterParticipantThanks 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!
March 9, 2021 at 4:57 pm #15448
Andrew MisplonKeymasterHi. 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; } }
March 9, 2021 at 5:21 pm #15450
rothsterParticipantWorks like a champ!!
Thanks!!!!
March 9, 2021 at 5:28 pm #15451
Andrew MisplonKeymasterGlad to hear you’re making progress 🙂
- AuthorPosts
You must be logged in to reply to this topic.