How to enable images on search results?

Any questions about styling and customising the layout, changing the number of columns, changing the number of sliding images and so on.

How to enable images on search results?

Postby FTrooper » Thu Dec 24, 2015 10:04 pm

I use this theme (which is amazing, btw) for my art site, but when you use the search or tag-search functions, the results pages are displayed with images. The posts are all in a similar format (first the image, then some text explaining the image), and I've tried setting the "featured image" of the posts to be the main image, but still the search results only ever display text.

Is there an option I can toggle or some CSS I need to edit to make the search results show images too?
FTrooper
I'm a regular
 
Posts: 8
Joined: Fri Mar 16, 2012 11:07 pm

Re: How to enable images on search results?

Postby FTrooper » Tue Dec 29, 2015 3:03 pm

Apparently this is doable by replacing the_excerpt in loop.php with the_content, forcing the loop to show the entire content of the posts rather than just excerpts. Woo!
FTrooper
I'm a regular
 
Posts: 8
Joined: Fri Mar 16, 2012 11:07 pm


Return to Advanced - Customising the theme



cron